@soton.ac.uk/cape3 0.15.0 → 0.17.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/dist/cape3.es.js +17147 -4046
- package/dist/cape3.umd.js +33 -21
- package/dist/index.d.ts +5 -1
- package/dist/plugins/ApplicationInsightsLoggingOptions.d.ts +5 -0
- package/dist/plugins/ApplicationInsightsLoggingPlugin.d.ts +4 -0
- package/dist/plugins/ConsoleLoggingOptions.d.ts +4 -0
- package/dist/plugins/ConsoleLoggingPlugin.d.ts +4 -0
- package/package.json +1 -1
package/dist/cape3.umd.js
CHANGED
|
@@ -1,47 +1,59 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(ot,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],l):(ot=typeof globalThis<"u"?globalThis:ot||self,l(ot.Cape3={},ot.Vue))})(this,function(ot,l){"use strict";var cx=Object.defineProperty;var ux=(ot,l,Mi)=>l in ot?cx(ot,l,{enumerable:!0,configurable:!0,writable:!0,value:Mi}):ot[l]=Mi;var xe=(ot,l,Mi)=>(ux(ot,typeof l!="symbol"?l+"":l,Mi),Mi);function Mi(){return w_().__VUE_DEVTOOLS_GLOBAL_HOOK__}function w_(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const bT=typeof Proxy=="function",kT="devtools-plugin:setup",CT="plugin:settings:set";let Ua,Rf;function OT(){var e;return Ua!==void 0||(typeof window<"u"&&window.performance?(Ua=!0,Rf=window.performance):typeof global<"u"&&(!((e=global.perf_hooks)===null||e===void 0)&&e.performance)?(Ua=!0,Rf=global.perf_hooks.performance):Ua=!1),Ua}function IT(){return OT()?Rf.now():Date.now()}class RT{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const o in t.settings){const s=t.settings[o];r[o]=s.defaultValue}const i=`__vue-devtools-plugin-settings__${t.id}`;let a=Object.assign({},r);try{const o=localStorage.getItem(i),s=JSON.parse(o);Object.assign(a,s)}catch{}this.fallbacks={getSettings(){return a},setSettings(o){try{localStorage.setItem(i,JSON.stringify(o))}catch{}a=o},now(){return IT()}},n&&n.on(CT,(o,s)=>{o===this.plugin.id&&this.fallbacks.setSettings(s)}),this.proxiedOn=new Proxy({},{get:(o,s)=>this.target?this.target.on[s]:(...c)=>{this.onQueue.push({method:s,args:c})}}),this.proxiedTarget=new Proxy({},{get:(o,s)=>this.target?this.target[s]:s==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(s)?(...c)=>(this.targetQueue.push({method:s,args:c,resolve:()=>{}}),this.fallbacks[s](...c)):(...c)=>new Promise(u=>{this.targetQueue.push({method:s,args:c,resolve:u})})})}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 Pf(e,t){const n=e,r=w_(),i=Mi(),a=bT&&n.enableEarlyProxy;if(i&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!a))i.emit(kT,e,t);else{const o=a?new RT(n,i):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:o}),o&&t(o.proxiedTarget)}}/*!
|
|
2
2
|
* vue-router v4.2.5
|
|
3
3
|
* (c) 2023 Eduardo San Martin Morote
|
|
4
4
|
* @license MIT
|
|
5
|
-
*/const
|
|
5
|
+
*/const ur=typeof window<"u";function PT(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const qe=Object.assign;function Af(e,t){const n={};for(const r in t){const i=t[r];n[r]=rn(i)?i.map(e):e(i)}return n}const fs=()=>{},rn=Array.isArray;function Ve(e){const t=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+e].concat(t))}const AT=/\/$/,MT=e=>e.replace(AT,"");function Mf(e,t,n="/"){let r,i={},a="",o="";const s=t.indexOf("#");let c=t.indexOf("?");return s<c&&s>=0&&(c=-1),c>-1&&(r=t.slice(0,c),a=t.slice(c+1,s>-1?s:t.length),i=e(a)),s>-1&&(r=r||t.slice(0,s),o=t.slice(s,t.length)),r=LT(r??t,n),{fullPath:r+(a&&"?")+a+o,path:r,query:i,hash:o}}function YT(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function b_(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function k_(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&jr(t.matched[r],n.matched[i])&&C_(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function jr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function C_(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!xT(e[n],t[n]))return!1;return!0}function xT(e,t){return rn(e)?O_(e,t):rn(t)?O_(t,e):e===t}function O_(e,t){return rn(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function LT(e,t){if(e.startsWith("/"))return e;if(process.env.NODE_ENV!=="production"&&!t.startsWith("/"))return Ve(`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("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==".")if(s==="..")a>1&&a--;else break;return n.slice(0,a).join("/")+"/"+r.slice(o-(o===r.length?1:0)).join("/")}var ds;(function(e){e.pop="pop",e.push="push"})(ds||(ds={}));var hs;(function(e){e.back="back",e.forward="forward",e.unknown=""})(hs||(hs={}));function VT(e){if(!e)if(ur){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),MT(e)}const FT=/^[^#]+#/;function $T(e,t){return e.replace(FT,"#")+t}function UT(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 Kl=()=>({left:window.pageXOffset,top:window.pageYOffset});function BT(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 a=document.querySelector(e.el);if(r&&a){Ve(`The selector "${e.el}" should be passed as "el: document.querySelector('${e.el}')" because it starts with "#".`);return}}catch{Ve(`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 i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i){process.env.NODE_ENV!=="production"&&Ve(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);return}t=UT(i,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 I_(e,t){return(history.state?history.state.position-t:-1)+e}const Yf=new Map;function HT(e,t){Yf.set(e,t)}function GT(e){const t=Yf.get(e);return Yf.delete(e),t}let WT=()=>location.protocol+"//"+location.host;function R_(e,t){const{pathname:n,search:r,hash:i}=t,a=e.indexOf("#");if(a>-1){let s=i.includes(e.slice(a))?e.slice(a).length:1,c=i.slice(s);return c[0]!=="/"&&(c="/"+c),b_(c,"")}return b_(n,e)+r+i}function jT(e,t,n,r){let i=[],a=[],o=null;const s=({state:v})=>{const h=R_(e,location),p=n.value,_=t.value;let m=0;if(v){if(n.value=h,t.value=v,o&&o===p){o=null;return}m=_?v.position-_.position:0}else r(h);i.forEach(g=>{g(n.value,p,{delta:m,type:ds.pop,direction:m?m>0?hs.forward:hs.back:hs.unknown})})};function c(){o=n.value}function u(v){i.push(v);const h=()=>{const p=i.indexOf(v);p>-1&&i.splice(p,1)};return a.push(h),h}function f(){const{history:v}=window;v.state&&v.replaceState(qe({},v.state,{scroll:Kl()}),"")}function d(){for(const v of a)v();a=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",f,{passive:!0}),{pauseListeners:c,listen:u,destroy:d}}function P_(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Kl():null}}function zT(e){const{history:t,location:n}=window,r={value:R_(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(c,u,f){const d=e.indexOf("#"),v=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+c:WT()+e+c;try{t[f?"replaceState":"pushState"](u,"",v),i.value=u}catch(h){process.env.NODE_ENV!=="production"?Ve("Error with push/replace State",h):console.error(h),n[f?"replace":"assign"](v)}}function o(c,u){const f=qe({},t.state,P_(i.value.back,c,i.value.forward,!0),u,{position:i.value.position});a(c,f,!0),r.value=c}function s(c,u){const f=qe({},i.value,t.state,{forward:c,scroll:Kl()});process.env.NODE_ENV!=="production"&&!t.state&&Ve(`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
6
|
|
|
7
7
|
history.replaceState(history.state, '', url)
|
|
8
8
|
|
|
9
|
-
You can find more information at https://next.router.vuejs.org/guide/migration/#usage-of-history-state.`),
|
|
10
|
-
"${e}" should be "${e.replace(/#.*$/,"#")}".`),
|
|
9
|
+
You can find more information at https://next.router.vuejs.org/guide/migration/#usage-of-history-state.`),a(f.current,f,!0);const d=qe({},P_(r.value,c,null),{position:f.position+1},u);a(c,d,!1),r.value=c}return{location:r,state:i,push:s,replace:o}}function KT(e){e=VT(e);const t=zT(e),n=jT(e,t.state,t.location,t.replace);function r(a,o=!0){o||n.pauseListeners(),history.go(a)}const i=qe({location:"",base:e,go:r,createHref:$T.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function qT(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),process.env.NODE_ENV!=="production"&&!e.endsWith("#/")&&!e.endsWith("#")&&Ve(`A hash base must end with a "#":
|
|
10
|
+
"${e}" should be "${e.replace(/#.*$/,"#")}".`),KT(e)}function XT(e){return typeof e=="string"||e&&typeof e=="object"}function A_(e){return typeof e=="string"||typeof e=="symbol"}const zr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},xf=Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var M_;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(M_||(M_={}));const JT={1({location:e,currentLocation:t}){return`No match for
|
|
11
11
|
${JSON.stringify(e)}${t?`
|
|
12
12
|
while being at
|
|
13
|
-
`+JSON.stringify(t):""}`},2({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${
|
|
14
|
-
See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch-all-routes.`);if(
|
|
13
|
+
`+JSON.stringify(t):""}`},2({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${ZT(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 Ba(e,t){return process.env.NODE_ENV!=="production"?qe(new Error(JT[e](t)),{type:e,[xf]:!0},t):qe(new Error,{type:e,[xf]:!0},t)}function fr(e,t){return e instanceof Error&&xf in e&&(t==null||!!(e.type&t))}const QT=["params","query","hash"];function ZT(e){if(typeof e=="string")return e;if("path"in e)return e.path;const t={};for(const n of QT)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}const Y_="[^/]+?",eN={sensitive:!1,strict:!1,start:!0,end:!0},tN=/[.+*?^${}()[\]/\\]/g;function nN(e,t){const n=qe({},eN,t),r=[];let i=n.start?"^":"";const a=[];for(const u of e){const f=u.length?[]:[90];n.strict&&!u.length&&(i+="/");for(let d=0;d<u.length;d++){const v=u[d];let h=40+(n.sensitive?.25:0);if(v.type===0)d||(i+="/"),i+=v.value.replace(tN,"\\$&"),h+=40;else if(v.type===1){const{value:p,repeatable:_,optional:m,regexp:g}=v;a.push({name:p,repeatable:_,optional:m});const E=g||Y_;if(E!==Y_){h+=10;try{new RegExp(`(${E})`)}catch(P){throw new Error(`Invalid custom RegExp for param "${p}" (${E}): `+P.message)}}let C=_?`((?:${E})(?:/(?:${E}))*)`:`(${E})`;d||(C=m&&u.length<2?`(?:/${C})`:"/"+C),m&&(C+="?"),i+=C,h+=20,m&&(h+=-8),_&&(h+=-20),E===".*"&&(h+=-50)}f.push(h)}r.push(f)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&(i+="(?:/|$)");const o=new RegExp(i,n.sensitive?"":"i");function s(u){const f=u.match(o),d={};if(!f)return null;for(let v=1;v<f.length;v++){const h=f[v]||"",p=a[v-1];d[p.name]=h&&p.repeatable?h.split("/"):h}return d}function c(u){let f="",d=!1;for(const v of e){(!d||!f.endsWith("/"))&&(f+="/"),d=!1;for(const h of v)if(h.type===0)f+=h.value;else if(h.type===1){const{value:p,repeatable:_,optional:m}=h,g=p in u?u[p]:"";if(rn(g)&&!_)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const E=rn(g)?g.join("/"):g;if(!E)if(m)v.length<2&&(f.endsWith("/")?f=f.slice(0,-1):d=!0);else throw new Error(`Missing required param "${p}"`);f+=E}}return f||"/"}return{re:o,score:r,keys:a,parse:s,stringify:c}}function rN(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 iN(e,t){let n=0;const r=e.score,i=t.score;for(;n<r.length&&n<i.length;){const a=rN(r[n],i[n]);if(a)return a;n++}if(Math.abs(i.length-r.length)===1){if(x_(r))return 1;if(x_(i))return-1}return i.length-r.length}function x_(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const aN={type:0,value:""},oN=/[a-zA-Z0-9_]/;function sN(e){if(!e)return[[]];if(e==="/")return[[aN]];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(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=0,r=n;const i=[];let a;function o(){a&&i.push(a),a=[]}let s=0,c,u="",f="";function d(){u&&(n===0?a.push({type:0,value:u}):n===1||n===2||n===3?(a.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:u,regexp:f,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function v(){u+=c}for(;s<e.length;){if(c=e[s++],c==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:c==="/"?(u&&d(),o()):c===":"?(d(),n=1):v();break;case 4:v(),n=r;break;case 1:c==="("?n=2:oN.test(c)?v():(d(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&s--);break;case 2:c===")"?f[f.length-1]=="\\"?f=f.slice(0,-1)+c:n=3:f+=c;break;case 3:d(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&s--,f="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),d(),o(),i}function lN(e,t,n){const r=nN(sN(e.path),n);if(process.env.NODE_ENV!=="production"){const a=new Set;for(const o of r.keys)a.has(o.name)&&Ve(`Found duplicated params with name "${o.name}" for path "${e.path}". Only the last one will be available on "$route.params".`),a.add(o.name)}const i=qe(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function cN(e,t){const n=[],r=new Map;t=F_({strict:!1,end:!0,sensitive:!1},t);function i(f){return r.get(f)}function a(f,d,v){const h=!v,p=uN(f);process.env.NODE_ENV!=="production"&&vN(p,d),p.aliasOf=v&&v.record;const _=F_(t,f),m=[p];if("alias"in f){const C=typeof f.alias=="string"?[f.alias]:f.alias;for(const P of C)m.push(qe({},p,{components:v?v.record.components:p.components,path:P,aliasOf:v?v.record:p}))}let g,E;for(const C of m){const{path:P}=C;if(d&&P[0]!=="/"){const V=d.record.path,w=V[V.length-1]==="/"?"":"/";C.path=d.record.path+(P&&w+P)}if(process.env.NODE_ENV!=="production"&&C.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(g=lN(C,d,_),process.env.NODE_ENV!=="production"&&d&&P[0]==="/"&&pN(g,d),v?(v.alias.push(g),process.env.NODE_ENV!=="production"&&hN(v,g)):(E=E||g,E!==g&&E.alias.push(g),h&&f.name&&!V_(g)&&o(f.name)),p.children){const V=p.children;for(let w=0;w<V.length;w++)a(V[w],g,v&&v.children[w])}v=v||g,(g.record.components&&Object.keys(g.record.components).length||g.record.name||g.record.redirect)&&c(g)}return E?()=>{o(E)}:fs}function o(f){if(A_(f)){const d=r.get(f);d&&(r.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(o),d.alias.forEach(o))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&r.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function s(){return n}function c(f){let d=0;for(;d<n.length&&iN(f,n[d])>=0&&(f.record.path!==n[d].record.path||!$_(f,n[d]));)d++;n.splice(d,0,f),f.record.name&&!V_(f)&&r.set(f.record.name,f)}function u(f,d){let v,h={},p,_;if("name"in f&&f.name){if(v=r.get(f.name),!v)throw Ba(1,{location:f});if(process.env.NODE_ENV!=="production"){const E=Object.keys(f.params||{}).filter(C=>!v.keys.find(P=>P.name===C));E.length&&Ve(`Discarded invalid param(s) "${E.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`)}_=v.record.name,h=qe(L_(d.params,v.keys.filter(E=>!E.optional).map(E=>E.name)),f.params&&L_(f.params,v.keys.map(E=>E.name))),p=v.stringify(h)}else if("path"in f)p=f.path,process.env.NODE_ENV!=="production"&&!p.startsWith("/")&&Ve(`The Matcher cannot resolve relative paths but received "${p}". Unless you directly called \`matcher.resolve("${p}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`),v=n.find(E=>E.re.test(p)),v&&(h=v.parse(p),_=v.record.name);else{if(v=d.name?r.get(d.name):n.find(E=>E.re.test(d.path)),!v)throw Ba(1,{location:f,currentLocation:d});_=v.record.name,h=qe({},d.params,f.params),p=v.stringify(h)}const m=[];let g=v;for(;g;)m.unshift(g.record),g=g.parent;return{name:_,path:p,params:h,matched:m,meta:dN(m)}}return e.forEach(f=>a(f)),{addRoute:a,resolve:u,removeRoute:o,getRoutes:s,getRecordMatcher:i}}function L_(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function uN(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:fN(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 fN(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 V_(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function dN(e){return e.reduce((t,n)=>qe(t,n.meta),{})}function F_(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Lf(e,t){return e.name===t.name&&e.optional===t.optional&&e.repeatable===t.repeatable}function hN(e,t){for(const n of e.keys)if(!n.optional&&!t.keys.find(Lf.bind(null,n)))return Ve(`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(Lf.bind(null,n)))return Ve(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`)}function vN(e,t){t&&t.record.name&&!e.name&&!e.path&&Ve(`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 pN(e,t){for(const n of t.keys)if(!e.keys.find(Lf.bind(null,n)))return Ve(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`)}function $_(e,t){return t.children.some(n=>n===e||$_(e,n))}const U_=/#/g,_N=/&/g,mN=/\//g,gN=/=/g,yN=/\?/g,B_=/\+/g,EN=/%5B/g,SN=/%5D/g,H_=/%5E/g,TN=/%60/g,G_=/%7B/g,NN=/%7C/g,W_=/%7D/g,DN=/%20/g;function Vf(e){return encodeURI(""+e).replace(NN,"|").replace(EN,"[").replace(SN,"]")}function wN(e){return Vf(e).replace(G_,"{").replace(W_,"}").replace(H_,"^")}function Ff(e){return Vf(e).replace(B_,"%2B").replace(DN,"+").replace(U_,"%23").replace(_N,"%26").replace(TN,"`").replace(G_,"{").replace(W_,"}").replace(H_,"^")}function bN(e){return Ff(e).replace(gN,"%3D")}function kN(e){return Vf(e).replace(U_,"%23").replace(yN,"%3F")}function CN(e){return e==null?"":kN(e).replace(mN,"%2F")}function vs(e){try{return decodeURIComponent(""+e)}catch{process.env.NODE_ENV!=="production"&&Ve(`Error decoding "${e}". Using original value`)}return""+e}function ON(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<r.length;++i){const a=r[i].replace(B_," "),o=a.indexOf("="),s=vs(o<0?a:a.slice(0,o)),c=o<0?null:vs(a.slice(o+1));if(s in t){let u=t[s];rn(u)||(u=t[s]=[u]),u.push(c)}else t[s]=c}return t}function j_(e){let t="";for(let n in e){const r=e[n];if(n=bN(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(rn(r)?r.map(a=>a&&Ff(a)):[r&&Ff(r)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+n,a!=null&&(t+="="+a))})}return t}function IN(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=rn(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const RN=Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),z_=Symbol(process.env.NODE_ENV!=="production"?"router view depth":""),$f=Symbol(process.env.NODE_ENV!=="production"?"router":""),Uf=Symbol(process.env.NODE_ENV!=="production"?"route location":""),Bf=Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function ps(){let e=[];function t(r){return e.push(r),()=>{const i=e.indexOf(r);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Kr(e,t,n,r,i){const a=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((o,s)=>{const c=d=>{d===!1?s(Ba(4,{from:n,to:t})):d instanceof Error?s(d):XT(d)?s(Ba(2,{from:t,to:d})):(a&&r.enterCallbacks[i]===a&&typeof d=="function"&&a.push(d),o())},u=e.call(r&&r.instances[i],t,n,process.env.NODE_ENV!=="production"?PN(c,t,n):c);let f=Promise.resolve(u);if(e.length<3&&(f=f.then(c)),process.env.NODE_ENV!=="production"&&e.length>2){const d=`The "next" callback was never called inside of ${e.name?'"'+e.name+'"':""}:
|
|
15
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 u=="object"&&"then"in u)
|
|
16
|
+
. If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;if(typeof u=="object"&&"then"in u)f=f.then(v=>c._called?v:(Ve(d),Promise.reject(new Error("Invalid navigation guard"))));else if(u!==void 0&&!c._called){Ve(d),s(new Error("Invalid navigation guard"));return}}f.catch(d=>s(d))})}function PN(e,t,n){let r=0;return function(){r++===1&&Ve(`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 Hf(e,t,n,r){const i=[];for(const a of e){process.env.NODE_ENV!=="production"&&!a.components&&!a.children.length&&Ve(`Record with path "${a.path}" is either missing a "component(s)" or "children" property.`);for(const o in a.components){let s=a.components[o];if(process.env.NODE_ENV!=="production"){if(!s||typeof s!="object"&&typeof s!="function")throw Ve(`Component "${o}" in record with path "${a.path}" is not a valid component. Received "${String(s)}".`),new Error("Invalid route component");if("then"in s){Ve(`Component "${o}" in record with path "${a.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=s;s=()=>c}else s.__asyncLoader&&!s.__warnedDefineAsync&&(s.__warnedDefineAsync=!0,Ve(`Component "${o}" in record with path "${a.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`))}if(!(t!=="beforeRouteEnter"&&!a.instances[o]))if(AN(s)){const u=(s.__vccOpts||s)[t];u&&i.push(Kr(u,n,r,a,o))}else{let c=s();process.env.NODE_ENV!=="production"&&!("catch"in c)&&(Ve(`Component "${o}" in record with path "${a.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)),i.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${a.path}"`));const f=PT(u)?u.default:u;a.components[o]=f;const v=(f.__vccOpts||f)[t];return v&&Kr(v,n,r,a,o)()}))}}}return i}function AN(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function K_(e){const t=l.inject($f),n=l.inject(Uf),r=l.computed(()=>t.resolve(l.unref(e.to))),i=l.computed(()=>{const{matched:c}=r.value,{length:u}=c,f=c[u-1],d=n.matched;if(!f||!d.length)return-1;const v=d.findIndex(jr.bind(null,f));if(v>-1)return v;const h=q_(c[u-2]);return u>1&&q_(f)===h&&d[d.length-1].path!==h?d.findIndex(jr.bind(null,c[u-2])):v}),a=l.computed(()=>i.value>-1&&xN(n.params,r.value.params)),o=l.computed(()=>i.value>-1&&i.value===n.matched.length-1&&C_(n.params,r.value.params));function s(c={}){return YN(c)?t[l.unref(e.replace)?"replace":"push"](l.unref(e.to)).catch(fs):Promise.resolve()}if(process.env.NODE_ENV!=="production"&&ur){const c=l.getCurrentInstance();if(c){const u={route:r.value,isActive:a.value,isExactActive:o.value};c.__vrl_devtools=c.__vrl_devtools||[],c.__vrl_devtools.push(u),l.watchEffect(()=>{u.route=r.value,u.isActive=a.value,u.isExactActive=o.value},{flush:"post"})}}return{route:r,href:l.computed(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}const MN=l.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:K_,setup(e,{slots:t}){const n=l.reactive(K_(e)),{options:r}=l.inject($f),i=l.computed(()=>({[X_(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[X_(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&t.default(n);return e.custom?a:l.h("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},a)}}});function YN(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 xN(e,t){for(const n in t){const r=t[n],i=e[n];if(typeof r=="string"){if(r!==i)return!1}else if(!rn(i)||i.length!==r.length||r.some((a,o)=>a!==i[o]))return!1}return!0}function q_(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const X_=(e,t,n)=>e??t??n,LN=l.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"&&FN();const r=l.inject(Bf),i=l.computed(()=>e.route||r.value),a=l.inject(z_,0),o=l.computed(()=>{let u=l.unref(a);const{matched:f}=i.value;let d;for(;(d=f[u])&&!d.components;)u++;return u}),s=l.computed(()=>i.value.matched[o.value]);l.provide(z_,l.computed(()=>o.value+1)),l.provide(RN,s),l.provide(Bf,i);const c=l.ref();return l.watch(()=>[c.value,s.value,e.name],([u,f,d],[v,h,p])=>{f&&(f.instances[d]=u,h&&h!==f&&u&&u===v&&(f.leaveGuards.size||(f.leaveGuards=h.leaveGuards),f.updateGuards.size||(f.updateGuards=h.updateGuards))),u&&f&&(!h||!jr(f,h)||!v)&&(f.enterCallbacks[d]||[]).forEach(_=>_(u))},{flush:"post"}),()=>{const u=i.value,f=e.name,d=s.value,v=d&&d.components[f];if(!v)return J_(n.default,{Component:v,route:u});const h=d.props[f],p=h?h===!0?u.params:typeof h=="function"?h(u):h:null,_=g=>{g.component.isUnmounted&&(d.instances[f]=null)},m=l.h(v,qe({},p,t,{onVnodeUnmounted:_,ref:c}));if(process.env.NODE_ENV!=="production"&&ur&&m.ref){const g={depth:o.value,name:d.name,path:d.path,meta:d.meta};(rn(m.ref)?m.ref.map(C=>C.i):[m.ref.i]).forEach(C=>{C.__vrv_devtools=g})}return J_(n.default,{Component:m,route:u})||m}}});function J_(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const VN=LN;function FN(){const e=l.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";Ve(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
|
|
17
17
|
Use slot props instead:
|
|
18
18
|
|
|
19
19
|
<router-view v-slot="{ Component }">
|
|
20
20
|
<${r}>
|
|
21
21
|
<component :is="Component" />
|
|
22
22
|
</${r}>
|
|
23
|
-
</router-view>`)}}function
|
|
24
|
-
${JSON.stringify(
|
|
25
|
-
when navigating to "${
|
|
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"))):
|
|
23
|
+
</router-view>`)}}function _s(e,t){const n=qe({},e,{matched:e.matched.map(r=>KN(r,["instances","children","aliasOf"]))});return{_custom:{type:null,readOnly:!0,display:e.fullPath,tooltip:t,value:n}}}function ql(e){return{_custom:{display:e}}}let $N=0;function UN(e,t,n){if(t.__hasDevtools)return;t.__hasDevtools=!0;const r=$N++;Pf({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},i=>{typeof i.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."),i.on.inspectComponent((f,d)=>{f.instanceData&&f.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:_s(t.currentRoute.value,"Current Route")})}),i.on.visitComponentTree(({treeNode:f,componentInstance:d})=>{if(d.__vrv_devtools){const v=d.__vrv_devtools;f.tags.push({label:(v.name?`${v.name.toString()}: `:"")+v.path,textColor:0,tooltip:"This component is rendered by <router-view>",backgroundColor:Q_})}rn(d.__vrl_devtools)&&(d.__devtoolsApi=i,d.__vrl_devtools.forEach(v=>{let h=tm,p="";v.isExactActive?(h=em,p="This is exactly active"):v.isActive&&(h=Z_,p="This link is active"),f.tags.push({label:v.route.path,textColor:0,tooltip:p,backgroundColor:h})}))}),l.watch(t.currentRoute,()=>{c(),i.notifyComponentUpdate(),i.sendInspectorTree(s),i.sendInspectorState(s)});const a="router:navigations:"+r;i.addTimelineLayer({id:a,label:`Router${r?" "+r:""} Navigations`,color:4237508}),t.onError((f,d)=>{i.addTimelineEvent({layerId:a,event:{title:"Error during Navigation",subtitle:d.fullPath,logType:"error",time:i.now(),data:{error:f},groupId:d.meta.__navigationId}})});let o=0;t.beforeEach((f,d)=>{const v={guard:ql("beforeEach"),from:_s(d,"Current Location during this navigation"),to:_s(f,"Target location")};Object.defineProperty(f.meta,"__navigationId",{value:o++}),i.addTimelineEvent({layerId:a,event:{time:i.now(),title:"Start of navigation",subtitle:f.fullPath,data:v,groupId:f.meta.__navigationId}})}),t.afterEach((f,d,v)=>{const h={guard:ql("afterEach")};v?(h.failure={_custom:{type:Error,readOnly:!0,display:v?v.message:"",tooltip:"Navigation Failure",value:v}},h.status=ql("❌")):h.status=ql("✅"),h.from=_s(d,"Current Location during this navigation"),h.to=_s(f,"Target location"),i.addTimelineEvent({layerId:a,event:{title:"End of navigation",subtitle:f.fullPath,time:i.now(),data:h,logType:v?"warning":"default",groupId:f.meta.__navigationId}})});const s="router-inspector:"+r;i.addInspector({id:s,label:"Routes"+(r?" "+r:""),icon:"book",treeFilterPlaceholder:"Search routes"});function c(){if(!u)return;const f=u;let d=n.getRoutes().filter(v=>!v.parent||!v.parent.record.components);d.forEach(im),f.filter&&(d=d.filter(v=>Gf(v,f.filter.toLowerCase()))),d.forEach(v=>rm(v,t.currentRoute.value)),f.rootNodes=d.map(nm)}let u;i.on.getInspectorTree(f=>{u=f,f.app===e&&f.inspectorId===s&&c()}),i.on.getInspectorState(f=>{if(f.app===e&&f.inspectorId===s){const v=n.getRoutes().find(h=>h.record.__vd_id===f.nodeId);v&&(f.state={options:HN(v)})}}),i.sendInspectorTree(s),i.sendInspectorState(s)})}function BN(e){return e.optional?e.repeatable?"*":"?":e.repeatable?"+":""}function HN(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}${BN(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 Q_=15485081,Z_=2450411,em=8702998,GN=2282478,tm=16486972,WN=6710886;function nm(e){const t=[],{record:n}=e;n.name!=null&&t.push({label:String(n.name),textColor:0,backgroundColor:GN}),n.aliasOf&&t.push({label:"alias",textColor:0,backgroundColor:tm}),e.__vd_match&&t.push({label:"matches",textColor:0,backgroundColor:Q_}),e.__vd_exactActive&&t.push({label:"exact",textColor:0,backgroundColor:em}),e.__vd_active&&t.push({label:"active",textColor:0,backgroundColor:Z_}),n.redirect&&t.push({label:typeof n.redirect=="string"?`redirect: ${n.redirect}`:"redirects",textColor:16777215,backgroundColor:WN});let r=n.__vd_id;return r==null&&(r=String(jN++),n.__vd_id=r),{id:r,label:n.path,tags:t,children:e.children.map(nm)}}let jN=0;const zN=/^\/(.*)\/([a-z]*)$/;function rm(e,t){const n=t.matched.length&&jr(t.matched[t.matched.length-1],e.record);e.__vd_exactActive=e.__vd_active=n,n||(e.__vd_active=t.matched.some(r=>jr(r,e.record))),e.children.forEach(r=>rm(r,t))}function im(e){e.__vd_match=!1,e.children.forEach(im)}function Gf(e,t){const n=String(e.re).match(zN);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(o=>Gf(o,t)),e.record.path!=="/"||t==="/"?(e.__vd_match=e.re.test(t),!0):!1;const i=e.record.path.toLowerCase(),a=vs(i);return!t.startsWith("/")&&(a.includes(t)||i.includes(t))||a.startsWith(t)||i.startsWith(t)||e.record.name&&String(e.record.name).includes(t)?!0:e.children.some(o=>Gf(o,t))}function KN(e,t){const n={};for(const r in e)t.includes(r)||(n[r]=e[r]);return n}function qN(e){const t=cN(e.routes,e),n=e.parseQuery||ON,r=e.stringifyQuery||j_,i=e.history;if(process.env.NODE_ENV!=="production"&&!i)throw new Error('Provide the "history" option when calling "createRouter()": https://next.router.vuejs.org/api/#history.');const a=ps(),o=ps(),s=ps(),c=l.shallowRef(zr);let u=zr;ur&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Af.bind(null,b=>""+b),d=Af.bind(null,CN),v=Af.bind(null,vs);function h(b,H){let X,ue;return A_(b)?(X=t.getRecordMatcher(b),ue=H):ue=b,t.addRoute(ue,X)}function p(b){const H=t.getRecordMatcher(b);H?t.removeRoute(H):process.env.NODE_ENV!=="production"&&Ve(`Cannot remove non-existent route "${String(b)}"`)}function _(){return t.getRoutes().map(b=>b.record)}function m(b){return!!t.getRecordMatcher(b)}function g(b,H){if(H=qe({},H||c.value),typeof b=="string"){const pe=Mf(n,b,H.path),x=t.resolve({path:pe.path},H),te=i.createHref(pe.fullPath);return process.env.NODE_ENV!=="production"&&(te.startsWith("//")?Ve(`Location "${b}" resolved to "${te}". A resolved location cannot start with multiple slashes.`):x.matched.length||Ve(`No match found for location with path "${b}"`)),qe(pe,x,{params:v(x.params),hash:vs(pe.hash),redirectedFrom:void 0,href:te})}let X;if("path"in b)process.env.NODE_ENV!=="production"&&"params"in b&&!("name"in b)&&Object.keys(b.params).length&&Ve(`Path "${b.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`),X=qe({},b,{path:Mf(n,b.path,H.path).path});else{const pe=qe({},b.params);for(const x in pe)pe[x]==null&&delete pe[x];X=qe({},b,{params:d(pe)}),H.params=d(H.params)}const ue=t.resolve(X,H),be=b.hash||"";process.env.NODE_ENV!=="production"&&be&&!be.startsWith("#")&&Ve(`A \`hash\` should always start with the character "#". Replace "${be}" with "#${be}".`),ue.params=f(v(ue.params));const ze=YT(r,qe({},b,{hash:wN(be),path:ue.path})),fe=i.createHref(ze);return process.env.NODE_ENV!=="production"&&(fe.startsWith("//")?Ve(`Location "${b}" resolved to "${fe}". A resolved location cannot start with multiple slashes.`):ue.matched.length||Ve(`No match found for location with path "${"path"in b?b.path:b}"`)),qe({fullPath:ze,hash:be,query:r===j_?IN(b.query):b.query||{}},ue,{redirectedFrom:void 0,href:fe})}function E(b){return typeof b=="string"?Mf(n,b,c.value.path):qe({},b)}function C(b,H){if(u!==b)return Ba(8,{from:H,to:b})}function P(b){return O(b)}function V(b){return P(qe(E(b),{replace:!0}))}function w(b){const H=b.matched[b.matched.length-1];if(H&&H.redirect){const{redirect:X}=H;let ue=typeof X=="function"?X(b):X;if(typeof ue=="string"&&(ue=ue.includes("?")||ue.includes("#")?ue=E(ue):{path:ue},ue.params={}),process.env.NODE_ENV!=="production"&&!("path"in ue)&&!("name"in ue))throw Ve(`Invalid redirect found:
|
|
24
|
+
${JSON.stringify(ue,null,2)}
|
|
25
|
+
when navigating to "${b.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect");return qe({query:b.query,hash:b.hash,params:"path"in ue?{}:b.params},ue)}}function O(b,H){const X=u=g(b),ue=c.value,be=b.state,ze=b.force,fe=b.replace===!0,pe=w(X);if(pe)return O(qe(E(pe),{state:typeof pe=="object"?qe({},be,pe.state):be,force:ze,replace:fe}),H||X);const x=X;x.redirectedFrom=H;let te;return!ze&&k_(r,ue,X)&&(te=Ba(16,{to:x,from:ue}),k(ue,ue,!0,!1)),(te?Promise.resolve(te):R(x,ue)).catch(re=>fr(re)?fr(re,2)?re:N(re):U(re,x,ue)).then(re=>{if(re){if(fr(re,2))return process.env.NODE_ENV!=="production"&&k_(r,g(re.to),x)&&H&&(H._count=H._count?H._count+1:1)>30?(Ve(`Detected a possibly infinite redirection in a navigation guard when going from "${ue.fullPath}" to "${x.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"))):O(qe({replace:fe},E(re.to),{state:typeof re.to=="object"?qe({},be,re.to.state):be,force:ze}),H||x)}else re=Q(x,ue,!0,fe,be);return Y(x,ue,re),re})}function K(b,H){const X=C(b,H);return X?Promise.reject(X):Promise.resolve()}function $(b){const H=J.values().next().value;return H&&typeof H.runWithContext=="function"?H.runWithContext(b):b()}function R(b,H){let X;const[ue,be,ze]=XN(b,H);X=Hf(ue.reverse(),"beforeRouteLeave",b,H);for(const pe of ue)pe.leaveGuards.forEach(x=>{X.push(Kr(x,b,H))});const fe=K.bind(null,b,H);return X.push(fe),ge(X).then(()=>{X=[];for(const pe of a.list())X.push(Kr(pe,b,H));return X.push(fe),ge(X)}).then(()=>{X=Hf(be,"beforeRouteUpdate",b,H);for(const pe of be)pe.updateGuards.forEach(x=>{X.push(Kr(x,b,H))});return X.push(fe),ge(X)}).then(()=>{X=[];for(const pe of ze)if(pe.beforeEnter)if(rn(pe.beforeEnter))for(const x of pe.beforeEnter)X.push(Kr(x,b,H));else X.push(Kr(pe.beforeEnter,b,H));return X.push(fe),ge(X)}).then(()=>(b.matched.forEach(pe=>pe.enterCallbacks={}),X=Hf(ze,"beforeRouteEnter",b,H),X.push(fe),ge(X))).then(()=>{X=[];for(const pe of o.list())X.push(Kr(pe,b,H));return X.push(fe),ge(X)}).catch(pe=>fr(pe,8)?pe:Promise.reject(pe))}function Y(b,H,X){s.list().forEach(ue=>$(()=>ue(b,H,X)))}function Q(b,H,X,ue,be){const ze=C(b,H);if(ze)return ze;const fe=H===zr,pe=ur?history.state:{};X&&(ue||fe?i.replace(b.fullPath,qe({scroll:fe&&pe&&pe.scroll},be)):i.push(b.fullPath,be)),c.value=b,k(b,H,X,fe),N()}let q;function y(){q||(q=i.listen((b,H,X)=>{if(!de.listening)return;const ue=g(b),be=w(ue);if(be){O(qe(be,{replace:!0}),ue).catch(fs);return}u=ue;const ze=c.value;ur&&HT(I_(ze.fullPath,X.delta),Kl()),R(ue,ze).catch(fe=>fr(fe,12)?fe:fr(fe,2)?(O(fe.to,ue).then(pe=>{fr(pe,20)&&!X.delta&&X.type===ds.pop&&i.go(-1,!1)}).catch(fs),Promise.reject()):(X.delta&&i.go(-X.delta,!1),U(fe,ue,ze))).then(fe=>{fe=fe||Q(ue,ze,!1),fe&&(X.delta&&!fr(fe,8)?i.go(-X.delta,!1):X.type===ds.pop&&fr(fe,20)&&i.go(-1,!1)),Y(ue,ze,fe)}).catch(fs)}))}let A=ps(),B=ps(),S;function U(b,H,X){N(b);const ue=B.list();return ue.length?ue.forEach(be=>be(b,H,X)):(process.env.NODE_ENV!=="production"&&Ve("uncaught error during route navigation:"),console.error(b)),Promise.reject(b)}function ce(){return S&&c.value!==zr?Promise.resolve():new Promise((b,H)=>{A.add([b,H])})}function N(b){return S||(S=!b,y(),A.list().forEach(([H,X])=>b?X(b):H()),A.reset()),b}function k(b,H,X,ue){const{scrollBehavior:be}=e;if(!ur||!be)return Promise.resolve();const ze=!X&>(I_(b.fullPath,0))||(ue||!X)&&history.state&&history.state.scroll||null;return l.nextTick().then(()=>be(b,H,ze)).then(fe=>fe&&BT(fe)).catch(fe=>U(fe,b,H))}const I=b=>i.go(b);let T;const J=new Set,de={currentRoute:c,listening:!0,addRoute:h,removeRoute:p,hasRoute:m,getRoutes:_,resolve:g,options:e,push:P,replace:V,go:I,back:()=>I(-1),forward:()=>I(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:B.add,isReady:ce,install(b){const H=this;b.component("RouterLink",MN),b.component("RouterView",VN),b.config.globalProperties.$router=H,Object.defineProperty(b.config.globalProperties,"$route",{enumerable:!0,get:()=>l.unref(c)}),ur&&!T&&c.value===zr&&(T=!0,P(i.location).catch(be=>{process.env.NODE_ENV!=="production"&&Ve("Unexpected error when starting the router:",be)}));const X={};for(const be in zr)Object.defineProperty(X,be,{get:()=>c.value[be],enumerable:!0});b.provide($f,H),b.provide(Uf,l.shallowReactive(X)),b.provide(Bf,c);const ue=b.unmount;J.add(b),b.unmount=function(){J.delete(b),J.size<1&&(u=zr,q&&q(),q=null,c.value=zr,T=!1,S=!1),ue()},process.env.NODE_ENV!=="production"&&ur&&UN(b,H,t)}};function ge(b){return b.reduce((H,X)=>H.then(()=>$(X)),Promise.resolve())}return de}function XN(e,t){const n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){const s=t.matched[o];s&&(e.matched.find(u=>jr(u,s))?r.push(s):n.push(s));const c=e.matched[o];c&&(t.matched.find(u=>jr(u,c))||i.push(c))}return[n,r,i]}function JN(){return l.inject(Uf)}var am=!1;function Xl(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 Wf(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}/*!
|
|
27
27
|
* pinia v2.1.7
|
|
28
28
|
* (c) 2023 Eduardo San Martin Morote
|
|
29
29
|
* @license MIT
|
|
30
|
-
*/let
|
|
31
|
-
${
|
|
32
|
-
Only state can be modified.`);
|
|
30
|
+
*/let ms;const gs=e=>ms=e,om=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function Yi(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Un;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Un||(Un={}));const Jl=typeof window<"u",ys=(process.env.NODE_ENV!=="production"||!1)&&process.env.NODE_ENV!=="test"&&Jl,sm=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 QN(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 jf(e,t,n){const r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){um(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function lm(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Ql(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 Zl=typeof navigator=="object"?navigator:{userAgent:""},cm=/Macintosh/.test(Zl.userAgent)&&/AppleWebKit/.test(Zl.userAgent)&&!/Safari/.test(Zl.userAgent),um=Jl?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!cm?ZN:"msSaveOrOpenBlob"in Zl?eD:tD:()=>{};function ZN(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?lm(r.href)?jf(e,t,n):(r.target="_blank",Ql(r)):Ql(r)):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){Ql(r)},0))}function eD(e,t="download",n){if(typeof e=="string")if(lm(e))jf(e,t,n);else{const r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){Ql(r)})}else navigator.msSaveOrOpenBlob(QN(e,n),t)}function tD(e,t,n,r){if(r=r||open("","_blank"),r&&(r.document.title=r.document.body.innerText="downloading..."),typeof e=="string")return jf(e,t,n);const i=e.type==="application/octet-stream",a=/constructor/i.test(String(sm.HTMLElement))||"safari"in sm,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a||cm)&&typeof FileReader<"u"){const s=new FileReader;s.onloadend=function(){let c=s.result;if(typeof c!="string")throw r=null,new Error("Wrong reader.result type");c=o?c:c.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=c:location.assign(c),r=null},s.readAsDataURL(e)}else{const s=URL.createObjectURL(e);r?r.location.assign(s):location.href=s,r=null,setTimeout(function(){URL.revokeObjectURL(s)},4e4)}}function wt(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 zf(e){return"_a"in e&&"install"in e}function fm(){if(!("clipboard"in navigator))return wt("Your browser doesn't support the Clipboard API","error"),!0}function dm(e){return e instanceof Error&&e.message.toLowerCase().includes("document is not focused")?(wt('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function nD(e){if(!fm())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),wt("Global state copied to clipboard.")}catch(t){if(dm(t))return;wt("Failed to serialize the state. Check the console for more details.","error"),console.error(t)}}async function rD(e){if(!fm())try{hm(e,JSON.parse(await navigator.clipboard.readText())),wt("Global state pasted from clipboard.")}catch(t){if(dm(t))return;wt("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(t)}}async function iD(e){try{um(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){wt("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}let dr;function aD(){dr||(dr=document.createElement("input"),dr.type="file",dr.accept=".json");function e(){return new Promise((t,n)=>{dr.onchange=async()=>{const r=dr.files;if(!r)return t(null);const i=r.item(0);return t(i?{text:await i.text(),file:i}:null)},dr.oncancel=()=>t(null),dr.onerror=n,dr.click()})}return e}async function oD(e){try{const n=await aD()();if(!n)return;const{text:r,file:i}=n;hm(e,JSON.parse(r)),wt(`Global state imported from "${i.name}".`)}catch(t){wt("Failed to import the state from JSON. Check the console for more details.","error"),console.error(t)}}function hm(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 wn(e){return{_custom:{display:e}}}const vm="🍍 Pinia (root)",Kf="_root";function sD(e){return zf(e)?{id:Kf,label:vm}:{id:e.$id,label:e.$id}}function lD(e){if(zf(e)){const n=Array.from(e._s.keys()),r=e._s;return{state:n.map(a=>({editable:!0,key:a,value:e.state.value[a]})),getters:n.filter(a=>r.get(a)._getters).map(a=>{const o=r.get(a);return{editable:!1,key:a,value:o._getters.reduce((s,c)=>(s[c]=o[c],s),{})}})}}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 cD(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:wn(e.type),key:wn(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function uD(e){switch(e){case Un.direct:return"mutation";case Un.patchFunction:return"$patch";case Un.patchObject:return"$patch";default:return"unknown"}}let Ha=!0;const ec=[],xi="pinia:mutations",At="pinia",{assign:fD}=Object,tc=e=>"🍍 "+e;function dD(e,t){Pf({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:ec,app:e},n=>{typeof n.now!="function"&&wt("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:xi,label:"Pinia 🍍",color:15064968}),n.addInspector({id:At,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{nD(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await rD(t),n.sendInspectorTree(At),n.sendInspectorState(At)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{iD(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await oD(t),n.sendInspectorTree(At),n.sendInspectorState(At)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:r=>{const i=t._s.get(r);i?typeof i.$reset!="function"?wt(`Cannot reset "${r}" store because it doesn't have a "$reset" method implemented.`,"warn"):(i.$reset(),wt(`Store "${r}" reset.`)):wt(`Cannot reset "${r}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((r,i)=>{const a=r.componentInstance&&r.componentInstance.proxy;if(a&&a._pStores){const o=r.componentInstance.proxy._pStores;Object.values(o).forEach(s=>{r.instanceData.state.push({type:tc(s.$id),key:"state",editable:!0,value:s._isOptionsAPI?{_custom:{value:l.toRaw(s.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>s.$reset()}]}}:Object.keys(s.$state).reduce((c,u)=>(c[u]=s.$state[u],c),{})}),s._getters&&s._getters.length&&r.instanceData.state.push({type:tc(s.$id),key:"getters",editable:!1,value:s._getters.reduce((c,u)=>{try{c[u]=s[u]}catch(f){c[u]=f}return c},{})})})}}),n.on.getInspectorTree(r=>{if(r.app===e&&r.inspectorId===At){let i=[t];i=i.concat(Array.from(t._s.values())),r.rootNodes=(r.filter?i.filter(a=>"$id"in a?a.$id.toLowerCase().includes(r.filter.toLowerCase()):vm.toLowerCase().includes(r.filter.toLowerCase())):i).map(sD)}}),n.on.getInspectorState(r=>{if(r.app===e&&r.inspectorId===At){const i=r.nodeId===Kf?t:t._s.get(r.nodeId);if(!i)return;i&&(r.state=lD(i))}}),n.on.editInspectorState((r,i)=>{if(r.app===e&&r.inspectorId===At){const a=r.nodeId===Kf?t:t._s.get(r.nodeId);if(!a)return wt(`store "${r.nodeId}" not found`,"error");const{path:o}=r;zf(a)?o.unshift("state"):(o.length!==1||!a._customProperties.has(o[0])||o[0]in a.$state)&&o.unshift("$state"),Ha=!1,r.set(a,o,r.state.value),Ha=!0}}),n.on.editComponentState(r=>{if(r.type.startsWith("🍍")){const i=r.type.replace(/^🍍\s*/,""),a=t._s.get(i);if(!a)return wt(`store "${i}" not found`,"error");const{path:o}=r;if(o[0]!=="state")return wt(`Invalid path for store "${i}":
|
|
31
|
+
${o}
|
|
32
|
+
Only state can be modified.`);o[0]="$state",Ha=!1,r.set(a,o,r.state.value),Ha=!0}})})}function hD(e,t){ec.includes(tc(t.$id))||ec.push(tc(t.$id)),Pf({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:ec,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:o,onError:s,name:c,args:u})=>{const f=pm++;n.addTimelineEvent({layerId:xi,event:{time:r(),title:"🛫 "+c,subtitle:"start",data:{store:wn(t.$id),action:wn(c),args:u},groupId:f}}),o(d=>{qr=void 0,n.addTimelineEvent({layerId:xi,event:{time:r(),title:"🛬 "+c,subtitle:"end",data:{store:wn(t.$id),action:wn(c),args:u,result:d},groupId:f}})}),s(d=>{qr=void 0,n.addTimelineEvent({layerId:xi,event:{time:r(),logType:"error",title:"💥 "+c,subtitle:"end",data:{store:wn(t.$id),action:wn(c),args:u,error:d},groupId:f}})})},!0),t._customProperties.forEach(o=>{l.watch(()=>l.unref(t[o]),(s,c)=>{n.notifyComponentUpdate(),n.sendInspectorState(At),Ha&&n.addTimelineEvent({layerId:xi,event:{time:r(),title:"Change",subtitle:o,data:{newValue:s,oldValue:c},groupId:qr}})},{deep:!0})}),t.$subscribe(({events:o,type:s},c)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(At),!Ha)return;const u={time:r(),title:uD(s),data:fD({store:wn(t.$id)},cD(o)),groupId:qr};s===Un.patchFunction?u.subtitle="⤵️":s===Un.patchObject?u.subtitle="🧩":o&&!Array.isArray(o)&&(u.subtitle=o.type),o&&(u.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:o}}),n.addTimelineEvent({layerId:xi,event:u})},{detached:!0,flush:"sync"});const i=t._hotUpdate;t._hotUpdate=l.markRaw(o=>{i(o),n.addTimelineEvent({layerId:xi,event:{time:r(),title:"🔥 "+t.$id,subtitle:"HMR update",data:{store:wn(t.$id),info:wn("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(At),n.sendInspectorState(At)});const{$dispose:a}=t;t.$dispose=()=>{a(),n.notifyComponentUpdate(),n.sendInspectorTree(At),n.sendInspectorState(At),n.getSettings().logStoreChanges&&wt(`Disposed "${t.$id}" store 🗑`)},n.notifyComponentUpdate(),n.sendInspectorTree(At),n.sendInspectorState(At),n.getSettings().logStoreChanges&&wt(`"${t.$id}" store installed 🆕`)})}let pm=0,qr;function _m(e,t,n){const r=t.reduce((i,a)=>(i[a]=l.toRaw(e)[a],i),{});for(const i in r)e[i]=function(){const a=pm,o=n?new Proxy(e,{get(...c){return qr=a,Reflect.get(...c)},set(...c){return qr=a,Reflect.set(...c)}}):e;qr=a;const s=r[i].apply(o,arguments);return qr=void 0,s}}function vD({app:e,store:t,options:n}){if(t.$id.startsWith("__hot:"))return;t._isOptionsAPI=!!n.state,_m(t,Object.keys(n.actions),t._isOptionsAPI);const r=t._hotUpdate;l.toRaw(t)._hotUpdate=function(i){r.apply(this,arguments),_m(t,Object.keys(i._hmrPayload.actions),!!t._isOptionsAPI)},hD(e,t)}function pD(){const e=l.effectScope(!0),t=e.run(()=>l.ref({}));let n=[],r=[];const i=l.markRaw({install(a){gs(i),i._a=a,a.provide(om,i),a.config.globalProperties.$pinia=i,ys&&dD(a,i),r.forEach(o=>n.push(o)),r=[]},use(a){return!this._a&&!am?r.push(a):n.push(a),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return ys&&typeof Proxy<"u"&&i.use(vD),i}function mm(e,t){for(const n in t){const r=t[n];if(!(n in e))continue;const i=e[n];Yi(i)&&Yi(r)&&!l.isRef(r)&&!l.isReactive(r)?e[n]=mm(i,r):e[n]=r}return e}const gm=()=>{};function ym(e,t,n,r=gm){e.push(t);const i=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),r())};return!n&&l.getCurrentScope()&&l.onScopeDispose(i),i}function Ga(e,...t){e.slice().forEach(n=>{n(...t)})}const _D=e=>e();function qf(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],i=e[n];Yi(i)&&Yi(r)&&e.hasOwnProperty(n)&&!l.isRef(r)&&!l.isReactive(r)?e[n]=qf(i,r):e[n]=r}return e}const mD=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function gD(e){return!Yi(e)||!e.hasOwnProperty(mD)}const{assign:cn}=Object;function Em(e){return!!(l.isRef(e)&&e.effect)}function Sm(e,t,n,r){const{state:i,actions:a,getters:o}=t,s=n.state.value[e];let c;function u(){!s&&(process.env.NODE_ENV==="production"||!r)&&(n.state.value[e]=i?i():{});const f=process.env.NODE_ENV!=="production"&&r?l.toRefs(l.ref(i?i():{}).value):l.toRefs(n.state.value[e]);return cn(f,a,Object.keys(o||{}).reduce((d,v)=>(process.env.NODE_ENV!=="production"&&v in f&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${v}" in store "${e}".`),d[v]=l.markRaw(l.computed(()=>{gs(n);const h=n._s.get(e);return o[v].call(h,h)})),d),{}))}return c=Xf(e,u,t,n,r,!0),c}function Xf(e,t,n={},r,i,a){let o;const s=cn({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"&&!am&&(c.onTrigger=R=>{u?h=R:u==!1&&!O._hotUpdating&&(Array.isArray(h)?h.push(R):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let u,f,d=[],v=[],h;const p=r.state.value[e];!a&&!p&&(process.env.NODE_ENV==="production"||!i)&&(r.state.value[e]={});const _=l.ref({});let m;function g(R){let Y;u=f=!1,process.env.NODE_ENV!=="production"&&(h=[]),typeof R=="function"?(R(r.state.value[e]),Y={type:Un.patchFunction,storeId:e,events:h}):(qf(r.state.value[e],R),Y={type:Un.patchObject,payload:R,storeId:e,events:h});const Q=m=Symbol();l.nextTick().then(()=>{m===Q&&(u=!0)}),f=!0,Ga(d,Y,r.state.value[e])}const E=a?function(){const{state:Y}=n,Q=Y?Y():{};this.$patch(q=>{cn(q,Q)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:gm;function C(){o.stop(),d=[],v=[],r._s.delete(e)}function P(R,Y){return function(){gs(r);const Q=Array.from(arguments),q=[],y=[];function A(U){q.push(U)}function B(U){y.push(U)}Ga(v,{args:Q,name:R,store:O,after:A,onError:B});let S;try{S=Y.apply(this&&this.$id===e?this:O,Q)}catch(U){throw Ga(y,U),U}return S instanceof Promise?S.then(U=>(Ga(q,U),U)).catch(U=>(Ga(y,U),Promise.reject(U))):(Ga(q,S),S)}}const V=l.markRaw({actions:{},getters:{},state:[],hotState:_}),w={_p:r,$id:e,$onAction:ym.bind(null,v),$patch:g,$reset:E,$subscribe(R,Y={}){const Q=ym(d,R,Y.detached,()=>q()),q=o.run(()=>l.watch(()=>r.state.value[e],y=>{(Y.flush==="sync"?f:u)&&R({storeId:e,type:Un.direct,events:h},y)},cn({},c,Y)));return Q},$dispose:C},O=l.reactive(process.env.NODE_ENV!=="production"||ys?cn({_hmrPayload:V,_customProperties:l.markRaw(new Set)},w):w);r._s.set(e,O);const $=(r._a&&r._a.runWithContext||_D)(()=>r._e.run(()=>(o=l.effectScope()).run(t)));for(const R in $){const Y=$[R];if(l.isRef(Y)&&!Em(Y)||l.isReactive(Y))process.env.NODE_ENV!=="production"&&i?Xl(_.value,R,l.toRef($,R)):a||(p&&gD(Y)&&(l.isRef(Y)?Y.value=p[R]:qf(Y,p[R])),r.state.value[e][R]=Y),process.env.NODE_ENV!=="production"&&V.state.push(R);else if(typeof Y=="function"){const Q=process.env.NODE_ENV!=="production"&&i?Y:P(R,Y);$[R]=Q,process.env.NODE_ENV!=="production"&&(V.actions[R]=Y),s.actions[R]=Y}else process.env.NODE_ENV!=="production"&&Em(Y)&&(V.getters[R]=a?n.getters[R]:Y,Jl&&($._getters||($._getters=l.markRaw([]))).push(R))}if(cn(O,$),cn(l.toRaw(O),$),Object.defineProperty(O,"$state",{get:()=>process.env.NODE_ENV!=="production"&&i?_.value:r.state.value[e],set:R=>{if(process.env.NODE_ENV!=="production"&&i)throw new Error("cannot set hotState");g(Y=>{cn(Y,R)})}}),process.env.NODE_ENV!=="production"&&(O._hotUpdate=l.markRaw(R=>{O._hotUpdating=!0,R._hmrPayload.state.forEach(Y=>{if(Y in O.$state){const Q=R.$state[Y],q=O.$state[Y];typeof Q=="object"&&Yi(Q)&&Yi(q)?mm(Q,q):R.$state[Y]=q}Xl(O,Y,l.toRef(R.$state,Y))}),Object.keys(O.$state).forEach(Y=>{Y in R.$state||Wf(O,Y)}),u=!1,f=!1,r.state.value[e]=l.toRef(R._hmrPayload,"hotState"),f=!0,l.nextTick().then(()=>{u=!0});for(const Y in R._hmrPayload.actions){const Q=R[Y];Xl(O,Y,P(Y,Q))}for(const Y in R._hmrPayload.getters){const Q=R._hmrPayload.getters[Y],q=a?l.computed(()=>(gs(r),Q.call(O,O))):Q;Xl(O,Y,q)}Object.keys(O._hmrPayload.getters).forEach(Y=>{Y in R._hmrPayload.getters||Wf(O,Y)}),Object.keys(O._hmrPayload.actions).forEach(Y=>{Y in R._hmrPayload.actions||Wf(O,Y)}),O._hmrPayload=R._hmrPayload,O._getters=R._getters,O._hotUpdating=!1})),ys){const R={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(Y=>{Object.defineProperty(O,Y,cn({value:O[Y]},R))})}return r._p.forEach(R=>{if(ys){const Y=o.run(()=>R({store:O,app:r._a,pinia:r,options:s}));Object.keys(Y||{}).forEach(Q=>O._customProperties.add(Q)),cn(O,Y)}else cn(O,o.run(()=>R({store:O,app:r._a,pinia:r,options:s})))}),process.env.NODE_ENV!=="production"&&O.$state&&typeof O.$state=="object"&&typeof O.$state.constructor=="function"&&!O.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
33
33
|
state: () => new MyClass()
|
|
34
|
-
Found in store "${
|
|
34
|
+
Found in store "${O.$id}".`),p&&a&&n.hydrate&&n.hydrate(O.$state,p),u=!0,f=!0,O}function Wa(e,t,n){let r,i;const a=typeof t=="function";if(typeof e=="string")r=e,i=a?n:t;else if(i=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 o(s,c){const u=l.hasInjectionContext();if(s=(process.env.NODE_ENV==="test"&&ms&&ms._testing?null:s)||(u?l.inject(om,null):null),s&&gs(s),process.env.NODE_ENV!=="production"&&!ms)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
35
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
36
|
-
This will fail in production.`);l=Ct,l._s.has(r)||(o?Kn(r,t,i,l):xs(r,i,l),process.env.NODE_ENV!=="production"&&(a._pinia=l));const d=l._s.get(r);if(process.env.NODE_ENV!=="production"&&c){const f="__hot:"+r,h=o?Kn(f,t,i,l,!0):xs(f,ue({},i),l,!0);c._hotUpdate(h),delete l.state.value[f],l._s.delete(f)}if(process.env.NODE_ENV!=="production"&&Qt){const f=s.getCurrentInstance();if(f&&f.proxy&&!c){const h=f.proxy,m="_pStores"in h?h._pStores:h._pStores={};m[r]=d}}return d}return a.$id=r,a}function qn(e,t){return Array.isArray(t)?t.reduce((n,r)=>(n[r]=function(){return e(this.$pinia)[r]},n),{}):Object.keys(t).reduce((n,r)=>(n[r]=function(){const i=e(this.$pinia),o=t[r];return typeof o=="function"?o.call(this,i):i[o]},n),{})}class nl extends Error{constructor(t){super(`The filter '${t}' was not found.`)}}const st=class st{constructor(){$(this,"sinks",[])}static getInstance(){return st.instance||(st.instance=new st),st.instance}registerSink(t){this.sinks.push(t)}logSearch(t){const n=t.map(r=>r.summarise());n.length===0&&n.push("No filters applied."),this.info("Search",n)}logSort(t,n){t&&n?this.info("Sort",[`${t} ${n}`]):this.info("Sort",["No sort order specified"])}error(t,n){this.sinks.forEach(r=>{r.error(t,n)})}info(t,n){this.sinks.forEach(r=>{r.info(t,n)})}warn(t,n){this.sinks.forEach(r=>{r.warn(t,n)})}debug(t,n){this.sinks.forEach(r=>{r.debug(t,n)})}};$(st,"instance");let Rt=st;const K=ut("filter",()=>{const e=Rt.getInstance(),t=s.ref(!1),n=s.ref([]),r=s.computed(()=>n.value),i=s.computed(()=>r.value.length),o=m=>{n.value.push(m)},a=()=>{n.value=[]};function l(){n.value.forEach(m=>m.reset())}const c=s.computed(()=>{const m=f.value.filter(b=>b.isActive());return e.logSearch(m),m}),u=s.computed(()=>c.value.length>0),d=s.computed(()=>n.value.sort((m,b)=>m.displayPosition<b.displayPosition?-1:m.displayPosition>b.displayPosition?1:0)),f=s.computed(()=>t.value===!0?d.value:d.value.filter(m=>m.display==="quick"));return{showAdvanced:t,filters:n,all:r,count:i,active:c,hasActive:u,forDisplay:f,byId:m=>{const b=n.value.find(U=>U.id===m);if(b===void 0)throw new nl(m);return b},reset:l,add:o,clear:a}});class rl extends Error{constructor(t){super(`The record ${t} was not found.`)}}function Is(e,t){const n=e.indexOf(t);if(n==-1)return;const r=n+1;if(r<=e.length-1)return e[r]}function Bs(e,t){const n=e.indexOf(t);if(n==-1)return;const r=n-1;if(r>=0)return e[r]}class Zn extends Error{constructor(t){super(`The field ${t} was not found.`)}}const As={SourceDataFile:"./site-data.json",ShortenedRecordCount:50};class Fs extends Error{constructor(n,r){super(n);$(this,"innerError");r&&(this.innerError=r)}}class sl{async getData(){try{const t=await fetch(As.SourceDataFile);if(!t.ok)throw new Fs(`Response status not OK. StatusCode: "${t.status}". StatusText: ${t.statusText} `);return await t.json()}catch(t){throw console.error(t),new Fs("Failed to read source data.",t)}}}function il(e){const t={},n=ft();return Object.keys(e).sort().forEach(r=>{if(n.byId(r)===void 0)throw new Zn(r)}),n.all.forEach(r=>{t[r.id]={value:e[r.id],field:r}}),t}function ol(e){return e.map(t=>il(t))}const Pt=ut("dataset",()=>{const e=s.ref(!1),t=s.ref(""),n=s.ref(!1),r=s.ref();async function i(){try{e.value=!0;const a=new sl;r.value=await a.getData(),n.value=!0,xt().set(ol(r.value.records))}catch(a){t.value=`Failed to fetch or process site-data.json from the website root. ${a}`}finally{e.value=!1}}const o=s.computed(()=>t.value!=""?"ERROR":e.value?"LOADING":n.value?"OK":"EMPTY");return{errorMessage:t,status:o,loadData:i,dataset:r}}),ft=ut("fields",()=>{const e=Pt(),t=s.computed(()=>{var i;return((i=e.dataset)==null?void 0:i.fields)??[]}),n=s.computed(()=>t.value.length);function r(i){const o=t.value.find(a=>a.id===i);if(o===void 0)throw new Zn(i);return o}return{all:t,count:n,byId:r}}),Ve=ut("properties",()=>{const e=ft(),t=Pt(),n=s.ref({}),r=s.computed(()=>{var f;return(f=t.dataset)==null?void 0:f.properties}),i=s.computed(()=>{var f;return((f=r==null?void 0:r.value)==null?void 0:f.metadata)??void 0}),o=s.computed(()=>{var f;return((f=r==null?void 0:r.value)==null?void 0:f.title)??"Loading..."}),a=s.computed(()=>{var f;return((f=r==null?void 0:r.value)==null?void 0:f.resultMode)??"filter"}),l=s.computed(()=>{var f,h;return(f=r==null?void 0:r.value)!=null&&f.sortableFields?(h=r==null?void 0:r.value)==null?void 0:h.sortableFields.map(m=>e.byId(m)):[]}),c=s.computed(()=>{var f,h;if((f=r==null?void 0:r.value)!=null&&f.idField)return e.byId((h=r==null?void 0:r.value)==null?void 0:h.idField);throw new Zn("UNDEFINED")});function u(f){n.value=f}return{pages:s.computed(()=>n.value.pages===void 0?[{path:"/about",label:"About",component:"CapeAboutPage"}]:n.value.pages),metadata:i,title:o,idField:c,sortableFields:l,resultMode:a,setOptions:u,options:n}}),xt=ut("records",()=>{const e=s.ref([]),t=s.computed(()=>e.value.length),n=s.computed(()=>e.value),r=Ve();function i(c){const u=e.value.find(d=>d[r.idField.id].value==c);if(u===void 0)throw new rl(c);return u}function o(c){e.value=c}function a(c){return Is(n.value,c)}function l(c){return Bs(n.value,c)}return{all:n,count:t,byId:i,set:o,next:a,previous:l,records:e}});var He=(e=>(e.Ascending="Ascending",e.Descending="Descending",e))(He||{});function al(e,t,n,r){var a,l;if(!n||!r)return 0;const i=(a=e[n])==null?void 0:a.value,o=(l=t[n])==null?void 0:l.value;return!i&&!o?0:!i&&o?r===He.Ascending?1:-1:i&&!o||i.toString().localeCompare(o.toString())<0?r===He.Ascending?-1:1:i.toString().localeCompare(o.toString())>0?r===He.Ascending?1:-1:0}const Ge=ut("searchResults",()=>{const e=Rt.getInstance(),t=xt(),n=Ve(),r=K(),i=s.computed(()=>n.resultMode==="search"&&!r.hasActive?[]:r.active.reduce((C,Q)=>Q.filterRecords(C),t.all)),o=s.computed(()=>{e.logSort(f.value,h.value);let C=i.value;return d.value&&(C=C.sort((Q,le)=>al(Q,le,f.value,h.value))),C.slice()}),a=s.computed(()=>{let C=o.value;return C=m.value?C:C.slice(0,As.ShortenedRecordCount),C}),l=s.computed(()=>i.value.length),c=s.computed(()=>a.value.length),u=s.computed(()=>c.value===l.value),d=s.computed(()=>n.sortableFields.length>0);s.computed(()=>f.value==T()),s.computed(()=>h.value==D());const f=s.ref(T()),h=s.ref(D()),m=s.ref(!1);function b(){f.value=T(),h.value=D()}function U(C){return Is(o.value,C)}function F(C){return Bs(o.value,C)}function D(){return d.value?He.Ascending:void 0}function T(){var C;return d.value?(C=n.sortableFields[0])==null?void 0:C.id:void 0}return{all:i,totalCount:l,visible:a,visibleCount:c,showAllResults:m,allResultsAreVisible:u,hasSortFields:d,sortFieldId:f,sortDirection:h,reset:b,next:U,previous:F}}),Ys={template:"#templateCapeHomepageLayout",computed:{...qn(K,["showAdvanced"]),...qn(Ge,{hasMatches:e=>e.totalCount>0})}},ll={class:"cape-home-page"},Ls=s.defineComponent({__name:"CapeHomePage",setup(e){return(t,n)=>(s.openBlock(),s.createElementBlock("form",ll,[s.createVNode(Ys)]))}}),Us={template:"#templateCapeRecordCard",props:["record"]},cl={key:0,class:"cape-record-page-record-not-found"},dl={class:"cape-record-page-record-id"},Ws=s.defineComponent({__name:"CapeRecordPage",setup(e){const t=Pa(),n=xt(),r=s.computed(()=>t.params.id),i=s.computed(()=>{try{return n.byId(r.value)}catch{return}});return(o,a)=>i.value===void 0?(s.openBlock(),s.createElementBlock("div",cl,[s.createTextVNode(" The record with Record ID "),s.createElementVNode("span",dl,s.toDisplayString(r.value),1),s.createTextVNode(" does not exist. ")])):(s.openBlock(),s.createBlock(Us,{key:1,record:i.value},null,8,["record"]))}}),js=$a({history:$o("/"),routes:[{name:"root",path:"/",component:Ls},{name:"record",path:"/record/:id",component:Ws}],linkActiveClass:"active",linkExactActiveClass:"active"}),Hs={template:"#templateCapeNavigation",computed:{...qn(Ve,["pages"])}},ul={class:"cape-load-error cape-error"},fl=s.createElementVNode("h2",null,"Unable to load data",-1),hl={class:"cape-load-error-message"},Gs=s.defineComponent({__name:"CapeLoadError",setup(e){const t=Pt();return(n,r)=>(s.openBlock(),s.createElementBlock("div",ul,[fl,s.createElementVNode("p",null,[s.createTextVNode(" An error has occurred. The error was: "),s.createElementVNode("span",hl,s.toDisplayString(s.unref(t).errorMessage),1),s.createTextVNode(". ")])]))}});function zs(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},i=n.replace(/\S/g,r);return new RegExp(i,"g")}class Jn{constructor(t,n,r,i){$(this,"id");$(this,"componentId");$(this,"displayPosition");$(this,"display");this.id=t,this.componentId=n,this.displayPosition=r,this.display=i}filterRecords(t){return t.filter(n=>this.matchesRecord(n))}matchesRecord(t){throw new Error("matchesRecord or filterRecords must be overridden!")}}function ht(e){return Array.isArray(e)?e:[e]}class pl extends Jn{constructor(n,r,i,o,a,l){super(n,r,i,o);$(this,"term");$(this,"defaultTerm");$(this,"placeholder");this.defaultTerm=a,this.placeholder=l,this.term=this.defaultTerm}reset(){this.term=this.defaultTerm}isDefault(){return this.term===this.defaultTerm}isActive(){return this.term!==""}matchesRecord(n){return this.term===void 0||this.term.trim()===""?!1:this.term.trim().toLowerCase().split(/\s+/).every(i=>{const o=zs(i);return this.termRegexpMatchesRecord(o,n)})}termRegexpMatchesRecord(n,r){return Object.values(r).some(i=>this.termRegexpMatchesValue(n,i.value))}termRegexpMatchesValue(n,r){return ht(r).some(o=>`${o}`.match(n))}summarise(){return`any field contains '${this.term}'`}}class rn extends Jn{constructor(n,r,i,o,a){super(n,r,i,o);$(this,"field");a.changeFilterMode||(a.changeFilterMode=!0),this.field=a}matchesRecord(n){const r=n[this.field.id].value;return this.matchesValue(r)}}function ml(e,t){if(e===void 0||e==="")return!1;const n=t.trim().toLowerCase().split(/\s+/),r=ht(e);return n.every(i=>{const o=zs(i);return r.some(a=>`${a}`.match(o))})}function It(e){return!(e===""||e===void 0||Array.isArray(e)&&e.length===0)}function sn(e){return!It(e)}function Qn(e,t){return e===""||e===void 0?!1:ht(e).find(i=>`${i}`.trim().toLowerCase()===t.trim().toLowerCase())!==void 0}class gl extends rn{constructor(n,r,i,o,a,l,c){super(n,r,i,o,a);$(this,"term");$(this,"defaultTerm");$(this,"mode");$(this,"defaultMode");this.defaultMode=c,this.defaultTerm=l,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}isActive(){switch(this.mode){case"contains":case"is":return this.term!=="";case"set":case"notSet":return!0}}matchesValue(n){switch(this.mode){case"contains":return ml(n,this.term);case"is":return Qn(n,this.term);case"set":return It(n);case"notSet":return sn(n)}}summarise(){switch(this.mode){case"is":return`${this.id} is '${this.term}'`;case"contains":return`${this.id} contains '${this.term}'`;case"set":return`${this.id} is present`;case"notSet":return`${this.id} is not present`}}}function Ks(e,t){return e===""||e===void 0?!1:ht(e).find(i=>`${i}`===t)!==void 0}function _l(e,t){return t.find(r=>Ks(e,r))!==void 0}class yl extends rn{constructor(n,r,i,o,a,l,c,u){super(n,r,i,o,a);$(this,"isTerm");$(this,"oneOfTerms");$(this,"mode");$(this,"defaultIsTerm");$(this,"defaultOneOfTerms");$(this,"defaultMode");this.defaultIsTerm=l,this.defaultOneOfTerms=c,this.defaultMode=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()}isActive(){switch(this.mode){case"is":return this.isTerm!=="";case"oneOf":return this.oneOfTerms.length>0;case"set":case"notSet":return!0}}matchesValue(n){switch(this.mode){case"oneOf":return _l(n,this.oneOfTerms);case"is":return Ks(n,this.isTerm);case"set":return It(n);case"notSet":return sn(n)}}summarise(){switch(this.mode){case"is":return`${this.id} is '${this.isTerm}'`;case"oneOf":return`${this.id} is one of '${this.oneOfTerms.join(", ")}'`;case"set":return`${this.id} is present`;case"notSet":return`${this.id} is not present`}}}function wl(e,t,n){return e===""||e===void 0?!1:ht(e).find(o=>o>=t&&o<=n)!==void 0}function Xe(e){if(e!="")return e}function qs(e,t){const n=Xe(e);return n??t}class Sl extends rn{constructor(n,r,i,o,a,l,c,u,d){super(n,r,i,o,a);$(this,"isTerm");$(this,"lowerBoundTerm");$(this,"upperBoundTerm");$(this,"defaultIsTerm");$(this,"defaultLowerBound");$(this,"defaultUpperBound");$(this,"mode");$(this,"defaultMode");this.defaultMode=d,this.defaultIsTerm=l,this.defaultLowerBound=c,this.defaultUpperBound=u,this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.lowerBoundTerm=this.defaultLowerBound,this.upperBoundTerm=this.defaultUpperBound}reset(){this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.lowerBoundTerm=this.defaultLowerBound,this.upperBoundTerm=this.defaultUpperBound}isDefault(){switch(this.defaultMode){case"is":return this.mode==this.defaultMode&&Xe(this.isTerm)==this.defaultIsTerm;case"between":return this.mode==this.defaultMode&&Xe(this.lowerBoundTerm)==this.defaultLowerBound&&Xe(this.upperBoundTerm)==this.defaultUpperBound;case"set":case"notSet":return this.mode==this.defaultMode}}isActive(){switch(this.mode){case"is":return Xe(this.isTerm)!==void 0;case"between":return Xe(this.lowerBoundTerm)!==void 0||Xe(this.upperBoundTerm)!==void 0;case"set":case"notSet":return!0}}matchesValue(n){switch(this.mode){case"is":return Qn(n,`${this.isTerm}`);case"between":{const r=qs(this.lowerBoundTerm,Number.NEGATIVE_INFINITY),i=qs(this.upperBoundTerm,Number.POSITIVE_INFINITY);return wl(n,r,i)}case"set":return It(n);case"notSet":return sn(n)}}summarise(){switch(this.mode){case"is":return`${this.id} is '${this.isTerm}'`;case"between":return`${this.id} is between '${this.lowerBoundTerm}' and '${this.upperBoundTerm}'`;case"set":return`${this.id} is present`;case"notSet":return`${this.id} is not present`}}}function kl(e,t,n){return e===""||e===void 0?!1:ht(e).find(o=>(t===void 0||o>=t)&&(n===void 0||o<=n))!==void 0}class bl extends rn{constructor(n,r,i,o,a,l,c,u,d){super(n,r,i,o,a);$(this,"isTerm");$(this,"lowerBoundTerm");$(this,"upperBoundTerm");$(this,"defaultIsTerm");$(this,"defaultLowerBound");$(this,"defaultUpperBound");$(this,"mode");$(this,"defaultMode");this.defaultMode=d,this.defaultIsTerm=l,this.defaultLowerBound=c,this.defaultUpperBound=u,this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.lowerBoundTerm=this.defaultLowerBound,this.upperBoundTerm=this.defaultUpperBound}reset(){this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.lowerBoundTerm=this.defaultLowerBound,this.upperBoundTerm=this.defaultUpperBound}isDefault(){return this.mode===this.defaultMode&&this.isTerm===this.defaultIsTerm}isActive(){switch(this.mode){case"is":return this.validDateTerm(this.isTerm);case"between":return this.validBoundsTerm(this.lowerBoundTerm)||this.validBoundsTerm(this.upperBoundTerm);case"set":case"notSet":return!0}}summarise(){switch(this.mode){case"is":return`${this.id} is '${this.isTerm}'`;case"between":return`${this.id} is between '${this.lowerBoundTerm}' and '${this.upperBoundTerm}'`;case"set":return`${this.id} is present`;case"notSet":return`${this.id} is not present`}}validBoundsTerm(n){return n!==void 0&&/^\d{4}(-\d{1,2}(-\d{1,2})?)?$/.test(n)}validDateTerm(n){return n!==void 0&&(this.validDMYTerm(n)||this.validYMDTerm(n))}validDMYTerm(n){return/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(n)}validYMDTerm(n){return/^\d{4}-\d{1,2}-\d{1,2}$/.test(n)}dateParts(n){return n===void 0?[]:this.validBoundsTerm(n)?n.split("-").map(i=>parseInt(i)):[]}termToUpperBound(n){const r=this.dateParts(n);return r.length===0&&r.push(9999),r.length===1&&r.push(99),r.length===2&&r.push(99),this.partsToDateString(r)}termToLowerBound(n){const r=this.dateParts(n);return r.length===0&&r.push(0),r.length===1&&r.push(0),r.length===2&&r.push(0),this.partsToDateString(r)}termToISO(n){if(n===void 0||!this.validDateTerm(n))return;let r;return this.validYMDTerm(n)?r=n.split(/-/):r=n.split(/\//).reverse(),this.partsToDateString(r.map(i=>parseInt(i)))}partsToDateString(n){return n[0].toString().padStart(4,"0")+"-"+n[1].toString().padStart(2,"0")+"-"+n[2].toString().padStart(2,"0")}matchesValue(n){switch(this.mode){case"is":return Qn(n,this.termToISO(this.isTerm)??"");case"between":return kl(n,this.termToLowerBound(this.lowerBoundTerm),this.termToUpperBound(this.upperBoundTerm));case"set":return It(n);case"notSet":return sn(n)}}}function El(){vl(),Ol(),Dl(),Vl()}function vl(){K().clear()}function Ol(){K().add(new pl("free-text","CapeFilterFreeText",-100,"quick","","free text search"))}function Dl(){const e=ft();let t=0;e.all.forEach(n=>{if(n.filterDisplay==="hide")return;const r=n.filterDisplay??"advanced";switch(t+=100,n.type){case"text":Nl(t,n,r);break;case"enum":Tl(t,n,r);break;case"integer":Ml(t,n,r);break;case"date":Cl(t,n,r);break}})}function Nl(e,t,n){K().add(new gl("field-"+t.id,"CapeFilterFieldText",e,n,t,"",t.defaultFilterMode??"contains"))}function Tl(e,t,n){K().add(new yl("field-"+t.id,"CapeFilterFieldEnum",e,n,t,"",[],t.defaultFilterMode??"oneOf"))}function Ml(e,t,n){K().add(new Sl("field-"+t.id,"CapeFilterFieldInteger",e,n,t,void 0,void 0,void 0,t.defaultFilterMode??"between"))}function Cl(e,t,n){K().add(new bl("field-"+t.id,"CapeFilterFieldDate",e,n,t,"","","",t.defaultFilterMode??"between"))}function Vl(){var n;const e=K(),t=Ve();((n=t==null?void 0:t.options)==null?void 0:n.additionalFilters)!==void 0&&t.options.additionalFilters.forEach(r=>e.add(r))}const Zs=s.defineComponent({__name:"CapeRoot",async setup(e){let t,n;const r=Pt();return[t,n]=s.withAsyncContext(()=>r.loadData()),await t,n(),El(),(i,o)=>(s.openBlock(),s.createElementBlock("div",null,[s.unref(r).status==="ERROR"?(s.openBlock(),s.createBlock(Gs,{key:0})):s.createCommentVNode("",!0),s.unref(r).status=="OK"?(s.openBlock(),s.createBlock(Hs,{key:1})):s.createCommentVNode("",!0)]))}}),$l={class:"cape-record-count"},Js=s.defineComponent({__name:"CapeRecordCount",setup(e){const t=xt();return(n,r)=>(s.openBlock(),s.createElementBlock("span",$l,s.toDisplayString(s.unref(t).count),1))}}),Rl={__name:"CapeAdvancedSearchToggle",setup(e){const t=K();return(n,r)=>s.withDirectives((s.openBlock(),s.createElementBlock("input",{"data-test":"show-all-filters","onUpdate:modelValue":r[0]||(r[0]=i=>s.unref(t).showAdvanced=i),type:"checkbox",class:"cape-advanced-search-toggle"},null,512)),[[s.vModelCheckbox,s.unref(t).showAdvanced]])}},Pl={class:"cape-filters"},xl=s.defineComponent({__name:"CapeFilters",setup(e){const t=K();return(n,r)=>(s.openBlock(),s.createElementBlock("div",Pl,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(t).forDisplay,i=>(s.openBlock(),s.createBlock(s.resolveDynamicComponent(i.componentId),{key:i,filterId:i.id},null,8,["filterId"]))),128))]))}}),Il={__name:"CapeFormResetButton",setup(e){const t=K(),n=Ge();function r(){t.reset(),n.reset()}return(i,o)=>(s.openBlock(),s.createElementBlock("button",{"data-test":"new-search-button",onClick:r,type:"button",class:"cape-button cape-reset-button cape-form-reset-button"},[s.renderSlot(i.$slots,"default",{},()=>[s.createTextVNode(" New search ")])]))}},Qs={template:"#templateCapeHeader"},Xs=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},Bl={},Al={class:"cape-loading"},Fl=[s.createElementVNode("div",{class:"cape-loading-spinner",role:"status"},[s.createElementVNode("span",{class:"cape-loading-spinner-sr-text"},"Loading...")],-1),s.createElementVNode("p",{class:"cape-loading-text"},"Please wait while the data loads.",-1)];function Yl(e,t){return s.openBlock(),s.createElementBlock("div",Al,Fl)}const ei=Xs(Bl,[["render",Yl]]),Ll=function(){var n;const e=Ve(),t=(n=e==null?void 0:e.options)==null?void 0:n.environment;return t||(console.warn('Cannot identify your environment name. Pass environment name as CapeOptions.environment when instantiating the CapePlugin. Defaulting to "UNKNOWN".'),"UNKNOWN")},Ul={key:0,id:"non-prod-warning","data-test":"non-prod-warning",class:"cape-non-prod-warning cape-warning cape-closeable"},Wl=s.createElementVNode("strong",null,"WARNING",-1),jl={class:"cape-non-prod-warning-environment"},Hl={key:0,class:"cape-non-prod-warning-instructions","data-test":"env-file-instructions"},Gl=s.defineComponent({__name:"CapeNonProdWarning",setup(e){const t=Ll(),n=s.ref(!1),r=s.computed(()=>t!="PROD"&&!n.value),i=s.computed(()=>t==="UNKNOWN"),o=function(){n.value=!0};return(a,l)=>r.value?(s.openBlock(),s.createElementBlock("div",Ul,[Wl,s.createTextVNode(': This is a "'),s.createElementVNode("span",jl,s.toDisplayString(s.unref(t)),1),s.createTextVNode('" instance of this service. '),i.value?(s.openBlock(),s.createElementBlock("div",Hl," This pane is being displayed because the CAPE environment for this application is not set to 'PROD'. Note: The CAPE environment for this application is passed in the CapeOptions when calling 'createCapeApp(...)' in the /src/main.ts file. ")):s.createCommentVNode("",!0),s.createElementVNode("span",{"aria-label":"Close",role:"button",tabindex:"0",title:"Hide this message",onClick:o,onKeyup:s.withKeys(o,["enter"]),class:"cape-non-prod-warning-close-button cape-close-button"},"X",32)])):s.createCommentVNode("",!0)}}),ti={template:"#templateCapeSummaryCard",props:["record"]},zl={key:0,class:"cape-sort-order","data-test":"cape-sort-order"},Kl=["for"],ql={class:"cape-sort-order-controls"},Zl=["id"],Jl=["value"],Ql=["id"],Xl=["value"],ec=["value"],ni=s.defineComponent({__name:"CapeSortOrder",props:{idDistinguisher:{type:String,required:!0}},setup(e){const t=Ve(),n=Ge(),r=e,i=s.computed(()=>`cape-sort-order-${r.idDistinguisher}`),o=s.computed(()=>`cape-sort-order-direction-${r.idDistinguisher}`);return(a,l)=>s.unref(n).hasSortFields&&s.unref(n).visibleCount>0?(s.openBlock(),s.createElementBlock("div",zl,[s.createElementVNode("label",{for:i.value},"Order results by: ",8,Kl),s.createElementVNode("div",ql,[s.withDirectives(s.createElementVNode("select",{id:i.value,class:"cape-sort-order-field","onUpdate:modelValue":l[0]||(l[0]=c=>s.unref(n).sortFieldId=c)},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(t).sortableFields,c=>(s.openBlock(),s.createElementBlock("option",{key:c.id,value:c.id},s.toDisplayString(c.label),9,Jl))),128))],8,Zl),[[s.vModelSelect,s.unref(n).sortFieldId]]),s.withDirectives(s.createElementVNode("select",{class:"cape-sort-order-direction","onUpdate:modelValue":l[1]||(l[1]=c=>s.unref(n).sortDirection=c),"aria-label":"Sort direction",id:o.value},[s.createElementVNode("option",{value:s.unref(He).Ascending},"Ascending",8,Xl),s.createElementVNode("option",{value:s.unref(He).Descending},"Descending",8,ec)],8,Ql),[[s.vModelSelect,s.unref(n).sortDirection]])])])):s.createCommentVNode("",!0)}}),tc={__name:"CapeShowAllResultsToggle",setup(e){const t=Ge();return(n,r)=>s.withDirectives((s.openBlock(),s.createElementBlock("input",{"data-test":"show-all-filters","onUpdate:modelValue":r[0]||(r[0]=i=>s.unref(t).showAllResults=i),type:"checkbox",class:"cape-show-all-results-toggle"},null,512)),[[s.vModelCheckbox,s.unref(t).showAllResults]])}},nc={key:0,class:"cape-results-info"},rc={key:0},sc={key:1},ic={key:1,class:"cape-results-count"},oc=s.defineComponent({__name:"CapeResultsInfo",setup(e){const t=Ge();return(n,r)=>s.unref(t).allResultsAreVisible?(s.openBlock(),s.createElementBlock("div",nc,[s.unref(t).visibleCount==1?(s.openBlock(),s.createElementBlock("div",rc,"Showing 1 matching record.")):(s.openBlock(),s.createElementBlock("div",sc,"Showing all "+s.toDisplayString(s.unref(t).visibleCount)+" matching records.",1))])):(s.openBlock(),s.createElementBlock("div",ic," Showing first "+s.toDisplayString(s.unref(t).visibleCount)+" of "+s.toDisplayString(s.unref(t).totalCount)+" matching records. ",1))}}),ac={class:"cape-results-controls flex justify-between"},lc={class:"flex justify-start"},cc={key:0,class:"cape-show-all-results-toggle switch switch-sm"},dc=["for"],Xn=s.defineComponent({__name:"CapeResultsControls",props:{idDistinguisher:{}},setup(e){const t=e,n=Ge(),r=s.computed(()=>!n.allResultsAreVisible||n.showAllResults),i=s.computed(()=>`cape-show-all-results-toggle-${t.idDistinguisher}`);return(o,a)=>(s.openBlock(),s.createElementBlock("div",ac,[s.createElementVNode("div",lc,[s.createVNode(oc),r.value?(s.openBlock(),s.createElementBlock("div",cc,[s.createVNode(tc,{class:"cape-results-toggle",id:i.value},null,8,["id"]),s.createElementVNode("label",{for:i.value},"Show All Results",8,dc)])):s.createCommentVNode("",!0)]),s.createVNode(ni,{"id-distinguisher":o.idDistinguisher},null,8,["id-distinguisher"])]))}}),uc={class:"cape-results"},fc={key:0,"data-test":"no-matches",class:"cape-results-no-matches"},hc=s.defineComponent({__name:"CapeResults",setup(e){const t=Ge();return(n,r)=>(s.openBlock(),s.createElementBlock("div",uc,[s.unref(t).totalCount===0?(s.openBlock(),s.createElementBlock("div",fc," No matches ")):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createVNode(Xn,{class:"cape-results-controls-top","id-distinguisher":"top"}),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(t).visible,(i,o)=>(s.openBlock(),s.createBlock(ti,{key:o,record:i},null,8,["record"]))),128)),s.createVNode(Xn,{class:"cape-results-controls-bottom","id-distinguisher":"bottom"})],64))]))}});//! moment.js
|
|
36
|
+
This will fail in production.`);s=ms,s._s.has(r)||(a?Xf(r,t,i,s):Sm(r,i,s),process.env.NODE_ENV!=="production"&&(o._pinia=s));const f=s._s.get(r);if(process.env.NODE_ENV!=="production"&&c){const d="__hot:"+r,v=a?Xf(d,t,i,s,!0):Sm(d,cn({},i),s,!0);c._hotUpdate(v),delete s.state.value[d],s._s.delete(d)}if(process.env.NODE_ENV!=="production"&&Jl){const d=l.getCurrentInstance();if(d&&d.proxy&&!c){const v=d.proxy,h="_pStores"in v?v._pStores:v._pStores={};h[r]=f}}return f}return o.$id=r,o}function Jf(e,t){return Array.isArray(t)?t.reduce((n,r)=>(n[r]=function(){return e(this.$pinia)[r]},n),{}):Object.keys(t).reduce((n,r)=>(n[r]=function(){const i=e(this.$pinia),a=t[r];return typeof a=="function"?a.call(this,i):i[a]},n),{})}class yD extends Error{constructor(t){super(`The filter '${t}' was not found.`)}}const Va=class Va{constructor(){xe(this,"sinks",[])}static getInstance(){return Va.instance||(Va.instance=new Va),Va.instance}registerSink(t){this.sinks.push(t)}logSearch(t){const n=t.map(r=>r.summarise());n.length===0&&n.push("No filters applied."),this.info("Search",n)}logSort(t,n){t&&n?this.info("Sort",[`${t} ${n}`]):this.info("Sort",["No sort order specified"])}error(t,n){this.sinks.forEach(r=>{r.error(t,n)})}info(t,n){this.sinks.forEach(r=>{r.info(t,n)})}warn(t,n){this.sinks.forEach(r=>{r.warn(t,n)})}debug(t,n){this.sinks.forEach(r=>{r.debug(t,n)})}};xe(Va,"instance");let Li=Va;const ft=Wa("filter",()=>{const e=Li.getInstance(),t=l.ref(!1),n=l.ref([]),r=l.computed(()=>n.value),i=l.computed(()=>r.value.length),a=h=>{n.value.push(h)},o=()=>{n.value=[]};function s(){n.value.forEach(h=>h.reset())}const c=l.computed(()=>{const h=d.value.filter(p=>p.isActive());return e.logSearch(h),h}),u=l.computed(()=>c.value.length>0),f=l.computed(()=>n.value.sort((h,p)=>h.displayPosition<p.displayPosition?-1:h.displayPosition>p.displayPosition?1:0)),d=l.computed(()=>t.value===!0?f.value:f.value.filter(h=>h.display==="quick"));return{showAdvanced:t,filters:n,all:r,count:i,active:c,hasActive:u,forDisplay:d,byId:h=>{const p=n.value.find(_=>_.id===h);if(p===void 0)throw new yD(h);return p},reset:s,add:a,clear:o}});class ED extends Error{constructor(t){super(`The record ${t} was not found.`)}}function Tm(e,t){const n=e.indexOf(t);if(n==-1)return;const r=n+1;if(r<=e.length-1)return e[r]}function Nm(e,t){const n=e.indexOf(t);if(n==-1)return;const r=n-1;if(r>=0)return e[r]}class Qf extends Error{constructor(t){super(`The field ${t} was not found.`)}}const Dm={SourceDataFile:"./site-data.json",ShortenedRecordCount:50};class wm extends Error{constructor(n,r){super(n);xe(this,"innerError");r&&(this.innerError=r)}}class SD{async getData(){try{const t=await fetch(Dm.SourceDataFile);if(!t.ok)throw new wm(`Response status not OK. StatusCode: "${t.status}". StatusText: ${t.statusText} `);return await t.json()}catch(t){throw console.error(t),new wm("Failed to read source data.",t)}}}function TD(e){const t={},n=ja();return Object.keys(e).sort().forEach(r=>{if(n.byId(r)===void 0)throw new Qf(r)}),n.all.forEach(r=>{t[r.id]={value:e[r.id],field:r}}),t}function ND(e){return e.map(t=>TD(t))}const Es=Wa("dataset",()=>{const e=l.ref(!1),t=l.ref(""),n=l.ref(!1),r=l.ref();async function i(){try{e.value=!0;const o=new SD;r.value=await o.getData(),n.value=!0,Ss().set(ND(r.value.records))}catch(o){t.value=`Failed to fetch or process site-data.json from the website root. ${o}`}finally{e.value=!1}}const a=l.computed(()=>t.value!=""?"ERROR":e.value?"LOADING":n.value?"OK":"EMPTY");return{errorMessage:t,status:a,loadData:i,dataset:r}}),ja=Wa("fields",()=>{const e=Es(),t=l.computed(()=>{var i;return((i=e.dataset)==null?void 0:i.fields)??[]}),n=l.computed(()=>t.value.length);function r(i){const a=t.value.find(o=>o.id===i);if(a===void 0)throw new Qf(i);return a}return{all:t,count:n,byId:r}}),hr=Wa("properties",()=>{const e=ja(),t=Es(),n=l.ref({}),r=l.computed(()=>{var d;return(d=t.dataset)==null?void 0:d.properties}),i=l.computed(()=>{var d;return((d=r==null?void 0:r.value)==null?void 0:d.metadata)??void 0}),a=l.computed(()=>{var d;return((d=r==null?void 0:r.value)==null?void 0:d.title)??"Loading..."}),o=l.computed(()=>{var d;return((d=r==null?void 0:r.value)==null?void 0:d.resultMode)??"filter"}),s=l.computed(()=>{var d,v;return(d=r==null?void 0:r.value)!=null&&d.sortableFields?(v=r==null?void 0:r.value)==null?void 0:v.sortableFields.map(h=>e.byId(h)):[]}),c=l.computed(()=>{var d,v;if((d=r==null?void 0:r.value)!=null&&d.idField)return e.byId((v=r==null?void 0:r.value)==null?void 0:v.idField);throw new Qf("UNDEFINED")});function u(d){n.value=d}return{pages:l.computed(()=>n.value.pages===void 0?[{path:"/about",label:"About",component:"CapeAboutPage"}]:n.value.pages),metadata:i,title:a,idField:c,sortableFields:s,resultMode:o,setOptions:u,options:n}}),Ss=Wa("records",()=>{const e=l.ref([]),t=l.computed(()=>e.value.length),n=l.computed(()=>e.value),r=hr();function i(c){const u=e.value.find(f=>f[r.idField.id].value==c);if(u===void 0)throw new ED(c);return u}function a(c){e.value=c}function o(c){return Tm(n.value,c)}function s(c){return Nm(n.value,c)}return{all:n,count:t,byId:i,set:a,next:o,previous:s,records:e}});var Xr=(e=>(e.Ascending="Ascending",e.Descending="Descending",e))(Xr||{});function DD(e,t,n,r){var o,s;if(!n||!r)return 0;const i=(o=e[n])==null?void 0:o.value,a=(s=t[n])==null?void 0:s.value;return!i&&!a?0:!i&&a?r===Xr.Ascending?1:-1:i&&!a||i.toString().localeCompare(a.toString())<0?r===Xr.Ascending?-1:1:i.toString().localeCompare(a.toString())>0?r===Xr.Ascending?1:-1:0}const Jr=Wa("searchResults",()=>{const e=Li.getInstance(),t=Ss(),n=hr(),r=ft(),i=l.computed(()=>n.resultMode==="search"&&!r.hasActive?[]:r.active.reduce((C,P)=>P.filterRecords(C),t.all)),a=l.computed(()=>{e.logSort(d.value,v.value);let C=i.value;return f.value&&(C=C.sort((P,V)=>DD(P,V,d.value,v.value))),C.slice()}),o=l.computed(()=>{let C=a.value;return C=h.value?C:C.slice(0,Dm.ShortenedRecordCount),C}),s=l.computed(()=>i.value.length),c=l.computed(()=>o.value.length),u=l.computed(()=>c.value===s.value),f=l.computed(()=>n.sortableFields.length>0);l.computed(()=>d.value==E()),l.computed(()=>v.value==g());const d=l.ref(E()),v=l.ref(g()),h=l.ref(!1);function p(){d.value=E(),v.value=g()}function _(C){return Tm(a.value,C)}function m(C){return Nm(a.value,C)}function g(){return f.value?Xr.Ascending:void 0}function E(){var C;return f.value?(C=n.sortableFields[0])==null?void 0:C.id:void 0}return{all:i,totalCount:s,visible:o,visibleCount:c,showAllResults:h,allResultsAreVisible:u,hasSortFields:f,sortFieldId:d,sortDirection:v,reset:p,next:_,previous:m}}),bm={template:"#templateCapeHomepageLayout",computed:{...Jf(ft,["showAdvanced"]),...Jf(Jr,{hasMatches:e=>e.totalCount>0})}},wD={class:"cape-home-page"},km=l.defineComponent({__name:"CapeHomePage",setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("form",wD,[l.createVNode(bm)]))}}),Cm={template:"#templateCapeRecordCard",props:["record"]},bD={key:0,class:"cape-record-page-record-not-found"},kD={class:"cape-record-page-record-id"},Om=l.defineComponent({__name:"CapeRecordPage",setup(e){const t=JN(),n=Ss(),r=l.computed(()=>t.params.id),i=l.computed(()=>{try{return n.byId(r.value)}catch{return}});return(a,o)=>i.value===void 0?(l.openBlock(),l.createElementBlock("div",bD,[l.createTextVNode(" The record with Record ID "),l.createElementVNode("span",kD,l.toDisplayString(r.value),1),l.createTextVNode(" does not exist. ")])):(l.openBlock(),l.createBlock(Cm,{key:1,record:i.value},null,8,["record"]))}}),Im=qN({history:qT("/"),routes:[{name:"root",path:"/",component:km},{name:"record",path:"/record/:id",component:Om}],linkActiveClass:"active",linkExactActiveClass:"active"}),Rm={template:"#templateCapeNavigation",computed:{...Jf(hr,["pages"])}},CD={class:"cape-load-error cape-error"},OD=l.createElementVNode("h2",null,"Unable to load data",-1),ID={class:"cape-load-error-message"},Pm=l.defineComponent({__name:"CapeLoadError",setup(e){const t=Es();return(n,r)=>(l.openBlock(),l.createElementBlock("div",CD,[OD,l.createElementVNode("p",null,[l.createTextVNode(" An error has occurred. The error was: "),l.createElementVNode("span",ID,l.toDisplayString(l.unref(t).errorMessage),1),l.createTextVNode(". ")])]))}});function Am(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(a){return t[a.toUpperCase()]??a},i=n.replace(/\S/g,r);return new RegExp(i,"g")}class Zf{constructor(t,n,r,i){xe(this,"id");xe(this,"componentId");xe(this,"displayPosition");xe(this,"display");this.id=t,this.componentId=n,this.displayPosition=r,this.display=i}filterRecords(t){return t.filter(n=>this.matchesRecord(n))}matchesRecord(t){throw new Error("matchesRecord or filterRecords must be overridden!")}}function za(e){return Array.isArray(e)?e:[e]}class RD extends Zf{constructor(n,r,i,a,o,s){super(n,r,i,a);xe(this,"term");xe(this,"defaultTerm");xe(this,"placeholder");this.defaultTerm=o,this.placeholder=s,this.term=this.defaultTerm}reset(){this.term=this.defaultTerm}isDefault(){return this.term===this.defaultTerm}isActive(){return this.term!==""}matchesRecord(n){return this.term===void 0||this.term.trim()===""?!1:this.term.trim().toLowerCase().split(/\s+/).every(i=>{const a=Am(i);return this.termRegexpMatchesRecord(a,n)})}termRegexpMatchesRecord(n,r){return Object.values(r).some(i=>this.termRegexpMatchesValue(n,i.value))}termRegexpMatchesValue(n,r){return za(r).some(a=>`${a}`.match(n))}summarise(){return`any field contains '${this.term}'`}}class nc extends Zf{constructor(n,r,i,a,o){super(n,r,i,a);xe(this,"field");o.changeFilterMode||(o.changeFilterMode=!0),this.field=o}matchesRecord(n){const r=n[this.field.id].value;return this.matchesValue(r)}}function PD(e,t){if(e===void 0||e==="")return!1;const n=t.trim().toLowerCase().split(/\s+/),r=za(e);return n.every(i=>{const a=Am(i);return r.some(o=>`${o}`.match(a))})}function Ts(e){return!(e===""||e===void 0||Array.isArray(e)&&e.length===0)}function rc(e){return!Ts(e)}function ed(e,t){return e===""||e===void 0?!1:za(e).find(i=>`${i}`.trim().toLowerCase()===t.trim().toLowerCase())!==void 0}class AD extends nc{constructor(n,r,i,a,o,s,c){super(n,r,i,a,o);xe(this,"term");xe(this,"defaultTerm");xe(this,"mode");xe(this,"defaultMode");this.defaultMode=c,this.defaultTerm=s,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}isActive(){switch(this.mode){case"contains":case"is":return this.term!=="";case"set":case"notSet":return!0}}matchesValue(n){switch(this.mode){case"contains":return PD(n,this.term);case"is":return ed(n,this.term);case"set":return Ts(n);case"notSet":return rc(n)}}summarise(){switch(this.mode){case"is":return`${this.id} is '${this.term}'`;case"contains":return`${this.id} contains '${this.term}'`;case"set":return`${this.id} is present`;case"notSet":return`${this.id} is not present`}}}function Mm(e,t){return e===""||e===void 0?!1:za(e).find(i=>`${i}`===t)!==void 0}function MD(e,t){return t.find(r=>Mm(e,r))!==void 0}class YD extends nc{constructor(n,r,i,a,o,s,c,u){super(n,r,i,a,o);xe(this,"isTerm");xe(this,"oneOfTerms");xe(this,"mode");xe(this,"defaultIsTerm");xe(this,"defaultOneOfTerms");xe(this,"defaultMode");this.defaultIsTerm=s,this.defaultOneOfTerms=c,this.defaultMode=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()}isActive(){switch(this.mode){case"is":return this.isTerm!=="";case"oneOf":return this.oneOfTerms.length>0;case"set":case"notSet":return!0}}matchesValue(n){switch(this.mode){case"oneOf":return MD(n,this.oneOfTerms);case"is":return Mm(n,this.isTerm);case"set":return Ts(n);case"notSet":return rc(n)}}summarise(){switch(this.mode){case"is":return`${this.id} is '${this.isTerm}'`;case"oneOf":return`${this.id} is one of '${this.oneOfTerms.join(", ")}'`;case"set":return`${this.id} is present`;case"notSet":return`${this.id} is not present`}}}function xD(e,t,n){return e===""||e===void 0?!1:za(e).find(a=>a>=t&&a<=n)!==void 0}function Vi(e){if(e!="")return e}function Ym(e,t){const n=Vi(e);return n??t}class LD extends nc{constructor(n,r,i,a,o,s,c,u,f){super(n,r,i,a,o);xe(this,"isTerm");xe(this,"lowerBoundTerm");xe(this,"upperBoundTerm");xe(this,"defaultIsTerm");xe(this,"defaultLowerBound");xe(this,"defaultUpperBound");xe(this,"mode");xe(this,"defaultMode");this.defaultMode=f,this.defaultIsTerm=s,this.defaultLowerBound=c,this.defaultUpperBound=u,this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.lowerBoundTerm=this.defaultLowerBound,this.upperBoundTerm=this.defaultUpperBound}reset(){this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.lowerBoundTerm=this.defaultLowerBound,this.upperBoundTerm=this.defaultUpperBound}isDefault(){switch(this.defaultMode){case"is":return this.mode==this.defaultMode&&Vi(this.isTerm)==this.defaultIsTerm;case"between":return this.mode==this.defaultMode&&Vi(this.lowerBoundTerm)==this.defaultLowerBound&&Vi(this.upperBoundTerm)==this.defaultUpperBound;case"set":case"notSet":return this.mode==this.defaultMode}}isActive(){switch(this.mode){case"is":return Vi(this.isTerm)!==void 0;case"between":return Vi(this.lowerBoundTerm)!==void 0||Vi(this.upperBoundTerm)!==void 0;case"set":case"notSet":return!0}}matchesValue(n){switch(this.mode){case"is":return ed(n,`${this.isTerm}`);case"between":{const r=Ym(this.lowerBoundTerm,Number.NEGATIVE_INFINITY),i=Ym(this.upperBoundTerm,Number.POSITIVE_INFINITY);return xD(n,r,i)}case"set":return Ts(n);case"notSet":return rc(n)}}summarise(){switch(this.mode){case"is":return`${this.id} is '${this.isTerm}'`;case"between":return`${this.id} is between '${this.lowerBoundTerm}' and '${this.upperBoundTerm}'`;case"set":return`${this.id} is present`;case"notSet":return`${this.id} is not present`}}}function VD(e,t,n){return e===""||e===void 0?!1:za(e).find(a=>(t===void 0||a>=t)&&(n===void 0||a<=n))!==void 0}class FD extends nc{constructor(n,r,i,a,o,s,c,u,f){super(n,r,i,a,o);xe(this,"isTerm");xe(this,"lowerBoundTerm");xe(this,"upperBoundTerm");xe(this,"defaultIsTerm");xe(this,"defaultLowerBound");xe(this,"defaultUpperBound");xe(this,"mode");xe(this,"defaultMode");this.defaultMode=f,this.defaultIsTerm=s,this.defaultLowerBound=c,this.defaultUpperBound=u,this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.lowerBoundTerm=this.defaultLowerBound,this.upperBoundTerm=this.defaultUpperBound}reset(){this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.lowerBoundTerm=this.defaultLowerBound,this.upperBoundTerm=this.defaultUpperBound}isDefault(){return this.mode===this.defaultMode&&this.isTerm===this.defaultIsTerm}isActive(){switch(this.mode){case"is":return this.validDateTerm(this.isTerm);case"between":return this.validBoundsTerm(this.lowerBoundTerm)||this.validBoundsTerm(this.upperBoundTerm);case"set":case"notSet":return!0}}summarise(){switch(this.mode){case"is":return`${this.id} is '${this.isTerm}'`;case"between":return`${this.id} is between '${this.lowerBoundTerm}' and '${this.upperBoundTerm}'`;case"set":return`${this.id} is present`;case"notSet":return`${this.id} is not present`}}validBoundsTerm(n){return n!==void 0&&/^\d{4}(-\d{1,2}(-\d{1,2})?)?$/.test(n)}validDateTerm(n){return n!==void 0&&(this.validDMYTerm(n)||this.validYMDTerm(n))}validDMYTerm(n){return/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(n)}validYMDTerm(n){return/^\d{4}-\d{1,2}-\d{1,2}$/.test(n)}dateParts(n){return n===void 0?[]:this.validBoundsTerm(n)?n.split("-").map(i=>parseInt(i)):[]}termToUpperBound(n){const r=this.dateParts(n);return r.length===0&&r.push(9999),r.length===1&&r.push(99),r.length===2&&r.push(99),this.partsToDateString(r)}termToLowerBound(n){const r=this.dateParts(n);return r.length===0&&r.push(0),r.length===1&&r.push(0),r.length===2&&r.push(0),this.partsToDateString(r)}termToISO(n){if(n===void 0||!this.validDateTerm(n))return;let r;return this.validYMDTerm(n)?r=n.split(/-/):r=n.split(/\//).reverse(),this.partsToDateString(r.map(i=>parseInt(i)))}partsToDateString(n){return n[0].toString().padStart(4,"0")+"-"+n[1].toString().padStart(2,"0")+"-"+n[2].toString().padStart(2,"0")}matchesValue(n){switch(this.mode){case"is":return ed(n,this.termToISO(this.isTerm)??"");case"between":return VD(n,this.termToLowerBound(this.lowerBoundTerm),this.termToUpperBound(this.upperBoundTerm));case"set":return Ts(n);case"notSet":return rc(n)}}}function $D(){UD(),BD(),HD(),KD()}function UD(){ft().clear()}function BD(){ft().add(new RD("free-text","CapeFilterFreeText",-100,"quick","","free text search"))}function HD(){const e=ja();let t=0;e.all.forEach(n=>{if(n.filterDisplay==="hide")return;const r=n.filterDisplay??"advanced";switch(t+=100,n.type){case"text":GD(t,n,r);break;case"enum":WD(t,n,r);break;case"integer":jD(t,n,r);break;case"date":zD(t,n,r);break}})}function GD(e,t,n){ft().add(new AD("field-"+t.id,"CapeFilterFieldText",e,n,t,"",t.defaultFilterMode??"contains"))}function WD(e,t,n){ft().add(new YD("field-"+t.id,"CapeFilterFieldEnum",e,n,t,"",[],t.defaultFilterMode??"oneOf"))}function jD(e,t,n){ft().add(new LD("field-"+t.id,"CapeFilterFieldInteger",e,n,t,void 0,void 0,void 0,t.defaultFilterMode??"between"))}function zD(e,t,n){ft().add(new FD("field-"+t.id,"CapeFilterFieldDate",e,n,t,"","","",t.defaultFilterMode??"between"))}function KD(){var n;const e=ft(),t=hr();((n=t==null?void 0:t.options)==null?void 0:n.additionalFilters)!==void 0&&t.options.additionalFilters.forEach(r=>e.add(r))}const xm=l.defineComponent({__name:"CapeRoot",async setup(e){let t,n;const r=Es();return[t,n]=l.withAsyncContext(()=>r.loadData()),await t,n(),$D(),(i,a)=>(l.openBlock(),l.createElementBlock("div",null,[l.unref(r).status==="ERROR"?(l.openBlock(),l.createBlock(Pm,{key:0})):l.createCommentVNode("",!0),l.unref(r).status=="OK"?(l.openBlock(),l.createBlock(Rm,{key:1})):l.createCommentVNode("",!0)]))}}),qD={class:"cape-record-count"},Lm=l.defineComponent({__name:"CapeRecordCount",setup(e){const t=Ss();return(n,r)=>(l.openBlock(),l.createElementBlock("span",qD,l.toDisplayString(l.unref(t).count),1))}}),XD={__name:"CapeAdvancedSearchToggle",setup(e){const t=ft();return(n,r)=>l.withDirectives((l.openBlock(),l.createElementBlock("input",{"data-test":"show-all-filters","onUpdate:modelValue":r[0]||(r[0]=i=>l.unref(t).showAdvanced=i),type:"checkbox",class:"cape-advanced-search-toggle"},null,512)),[[l.vModelCheckbox,l.unref(t).showAdvanced]])}},JD={class:"cape-filters"},QD=l.defineComponent({__name:"CapeFilters",setup(e){const t=ft();return(n,r)=>(l.openBlock(),l.createElementBlock("div",JD,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(t).forDisplay,i=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(i.componentId),{key:i,filterId:i.id},null,8,["filterId"]))),128))]))}}),ZD={__name:"CapeFormResetButton",setup(e){const t=ft(),n=Jr();function r(){t.reset(),n.reset()}return(i,a)=>(l.openBlock(),l.createElementBlock("button",{"data-test":"new-search-button",onClick:r,type:"button",class:"cape-button cape-reset-button cape-form-reset-button"},[l.renderSlot(i.$slots,"default",{},()=>[l.createTextVNode(" New search ")])]))}},Vm={template:"#templateCapeHeader"},Fm=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},ew={},tw={class:"cape-loading"},nw=[l.createElementVNode("div",{class:"cape-loading-spinner",role:"status"},[l.createElementVNode("span",{class:"cape-loading-spinner-sr-text"},"Loading...")],-1),l.createElementVNode("p",{class:"cape-loading-text"},"Please wait while the data loads.",-1)];function rw(e,t){return l.openBlock(),l.createElementBlock("div",tw,nw)}const $m=Fm(ew,[["render",rw]]),iw=function(){var n;const e=hr(),t=(n=e==null?void 0:e.options)==null?void 0:n.environment;return t||(console.warn('Cannot identify your environment name. Pass environment name as CapeOptions.environment when instantiating the CapePlugin. Defaulting to "UNKNOWN".'),"UNKNOWN")},aw={key:0,id:"non-prod-warning","data-test":"non-prod-warning",class:"cape-non-prod-warning cape-warning cape-closeable"},ow=l.createElementVNode("strong",null,"WARNING",-1),sw={class:"cape-non-prod-warning-environment"},lw={key:0,class:"cape-non-prod-warning-instructions","data-test":"env-file-instructions"},cw=l.defineComponent({__name:"CapeNonProdWarning",setup(e){const t=iw(),n=l.ref(!1),r=l.computed(()=>t!="PROD"&&!n.value),i=l.computed(()=>t==="UNKNOWN"),a=function(){n.value=!0};return(o,s)=>r.value?(l.openBlock(),l.createElementBlock("div",aw,[ow,l.createTextVNode(': This is a "'),l.createElementVNode("span",sw,l.toDisplayString(l.unref(t)),1),l.createTextVNode('" instance of this service. '),i.value?(l.openBlock(),l.createElementBlock("div",lw," This pane is being displayed because the CAPE environment for this application is not set to 'PROD'. Note: The CAPE environment for this application is passed in the CapeOptions when calling 'createCapeApp(...)' in the /src/main.ts file. ")):l.createCommentVNode("",!0),l.createElementVNode("span",{"aria-label":"Close",role:"button",tabindex:"0",title:"Hide this message",onClick:a,onKeyup:l.withKeys(a,["enter"]),class:"cape-non-prod-warning-close-button cape-close-button"},"X",32)])):l.createCommentVNode("",!0)}}),Um={template:"#templateCapeSummaryCard",props:["record"]},uw={key:0,class:"cape-sort-order","data-test":"cape-sort-order"},fw=["for"],dw={class:"cape-sort-order-controls"},hw=["id"],vw=["value"],pw=["id"],_w=["value"],mw=["value"],Bm=l.defineComponent({__name:"CapeSortOrder",props:{idDistinguisher:{type:String,required:!0}},setup(e){const t=hr(),n=Jr(),r=e,i=l.computed(()=>`cape-sort-order-${r.idDistinguisher}`),a=l.computed(()=>`cape-sort-order-direction-${r.idDistinguisher}`);return(o,s)=>l.unref(n).hasSortFields&&l.unref(n).visibleCount>0?(l.openBlock(),l.createElementBlock("div",uw,[l.createElementVNode("label",{for:i.value},"Order results by: ",8,fw),l.createElementVNode("div",dw,[l.withDirectives(l.createElementVNode("select",{id:i.value,class:"cape-sort-order-field","onUpdate:modelValue":s[0]||(s[0]=c=>l.unref(n).sortFieldId=c)},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(t).sortableFields,c=>(l.openBlock(),l.createElementBlock("option",{key:c.id,value:c.id},l.toDisplayString(c.label),9,vw))),128))],8,hw),[[l.vModelSelect,l.unref(n).sortFieldId]]),l.withDirectives(l.createElementVNode("select",{class:"cape-sort-order-direction","onUpdate:modelValue":s[1]||(s[1]=c=>l.unref(n).sortDirection=c),"aria-label":"Sort direction",id:a.value},[l.createElementVNode("option",{value:l.unref(Xr).Ascending},"Ascending",8,_w),l.createElementVNode("option",{value:l.unref(Xr).Descending},"Descending",8,mw)],8,pw),[[l.vModelSelect,l.unref(n).sortDirection]])])])):l.createCommentVNode("",!0)}}),gw={__name:"CapeShowAllResultsToggle",setup(e){const t=Jr();return(n,r)=>l.withDirectives((l.openBlock(),l.createElementBlock("input",{"data-test":"show-all-filters","onUpdate:modelValue":r[0]||(r[0]=i=>l.unref(t).showAllResults=i),type:"checkbox",class:"cape-show-all-results-toggle"},null,512)),[[l.vModelCheckbox,l.unref(t).showAllResults]])}},yw={key:0,class:"cape-results-info"},Ew={key:0},Sw={key:1},Tw={key:1,class:"cape-results-count"},Nw=l.defineComponent({__name:"CapeResultsInfo",setup(e){const t=Jr();return(n,r)=>l.unref(t).allResultsAreVisible?(l.openBlock(),l.createElementBlock("div",yw,[l.unref(t).visibleCount==1?(l.openBlock(),l.createElementBlock("div",Ew,"Showing 1 matching record.")):(l.openBlock(),l.createElementBlock("div",Sw,"Showing all "+l.toDisplayString(l.unref(t).visibleCount)+" matching records.",1))])):(l.openBlock(),l.createElementBlock("div",Tw," Showing first "+l.toDisplayString(l.unref(t).visibleCount)+" of "+l.toDisplayString(l.unref(t).totalCount)+" matching records. ",1))}}),Dw={class:"cape-results-controls flex justify-between"},ww={class:"flex justify-start"},bw={key:0,class:"cape-show-all-results-toggle switch switch-sm"},kw=["for"],td=l.defineComponent({__name:"CapeResultsControls",props:{idDistinguisher:{}},setup(e){const t=e,n=Jr(),r=l.computed(()=>!n.allResultsAreVisible||n.showAllResults),i=l.computed(()=>`cape-show-all-results-toggle-${t.idDistinguisher}`);return(a,o)=>(l.openBlock(),l.createElementBlock("div",Dw,[l.createElementVNode("div",ww,[l.createVNode(Nw),r.value?(l.openBlock(),l.createElementBlock("div",bw,[l.createVNode(gw,{class:"cape-results-toggle",id:i.value},null,8,["id"]),l.createElementVNode("label",{for:i.value},"Show All Results",8,kw)])):l.createCommentVNode("",!0)]),l.createVNode(Bm,{"id-distinguisher":a.idDistinguisher},null,8,["id-distinguisher"])]))}}),Cw={class:"cape-results"},Ow={key:0,"data-test":"no-matches",class:"cape-results-no-matches"},Iw=l.defineComponent({__name:"CapeResults",setup(e){const t=Jr();return(n,r)=>(l.openBlock(),l.createElementBlock("div",Cw,[l.unref(t).totalCount===0?(l.openBlock(),l.createElementBlock("div",Ow," No matches ")):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createVNode(td,{class:"cape-results-controls-top","id-distinguisher":"top"}),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(t).visible,(i,a)=>(l.openBlock(),l.createBlock(Um,{key:a,record:i},null,8,["record"]))),128)),l.createVNode(td,{class:"cape-results-controls-bottom","id-distinguisher":"bottom"})],64))]))}});//! moment.js
|
|
37
37
|
//! version : 2.30.1
|
|
38
38
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
39
39
|
//! license : MIT
|
|
40
40
|
//! momentjs.com
|
|
41
|
-
var
|
|
42
|
-
[`+
|
|
41
|
+
var Hm;function ne(){return Hm.apply(null,arguments)}function Rw(e){Hm=e}function bn(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Fi(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function Ge(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function nd(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(Ge(e,t))return!1;return!0}function jt(e){return e===void 0}function vr(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Ns(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Gm(e,t){var n=[],r,i=e.length;for(r=0;r<i;++r)n.push(t(e[r],r));return n}function Qr(e,t){for(var n in t)Ge(t,n)&&(e[n]=t[n]);return Ge(t,"toString")&&(e.toString=t.toString),Ge(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Bn(e,t,n,r){return mg(e,t,n,r,!0).utc()}function Pw(){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 Oe(e){return e._pf==null&&(e._pf=Pw()),e._pf}var rd;Array.prototype.some?rd=Array.prototype.some:rd=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 id(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=Oe(e),n=rd.call(t.parsedDateParts,function(i){return i!=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 ic(e){var t=Bn(NaN);return e!=null?Qr(Oe(t),e):Oe(t).userInvalidated=!0,t}var Wm=ne.momentProperties=[],ad=!1;function od(e,t){var n,r,i,a=Wm.length;if(jt(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),jt(t._i)||(e._i=t._i),jt(t._f)||(e._f=t._f),jt(t._l)||(e._l=t._l),jt(t._strict)||(e._strict=t._strict),jt(t._tzm)||(e._tzm=t._tzm),jt(t._isUTC)||(e._isUTC=t._isUTC),jt(t._offset)||(e._offset=t._offset),jt(t._pf)||(e._pf=Oe(t)),jt(t._locale)||(e._locale=t._locale),a>0)for(n=0;n<a;n++)r=Wm[n],i=t[r],jt(i)||(e[r]=i);return e}function Ds(e){od(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),ad===!1&&(ad=!0,ne.updateOffset(this),ad=!1)}function kn(e){return e instanceof Ds||e!=null&&e._isAMomentObject!=null}function jm(e){ne.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function un(e,t){var n=!0;return Qr(function(){if(ne.deprecationHandler!=null&&ne.deprecationHandler(null,e),n){var r=[],i,a,o,s=arguments.length;for(a=0;a<s;a++){if(i="",typeof arguments[a]=="object"){i+=`
|
|
42
|
+
[`+a+"] ";for(o in arguments[0])Ge(arguments[0],o)&&(i+=o+": "+arguments[0][o]+", ");i=i.slice(0,-2)}else i=arguments[a];r.push(i)}jm(e+`
|
|
43
43
|
Arguments: `+Array.prototype.slice.call(r).join("")+`
|
|
44
|
-
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var ai={};function li(e,t){_.deprecationHandler!=null&&_.deprecationHandler(e,t),ai[e]||(oi(t),ai[e]=!0)}_.suppressDeprecationWarnings=!1,_.deprecationHandler=null;function ve(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function gc(e){var t,n;for(n in e)B(e,n)&&(t=e[n],ve(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 ir(e,t){var n=ze({},e),r;for(r in t)B(t,r)&&(et(e[r])&&et(t[r])?(n[r]={},ze(n[r],e[r]),ze(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)B(e,r)&&!B(t,r)&&et(e[r])&&(n[r]=ze({},n[r]));return n}function or(e){e!=null&&this.set(e)}var ar;Object.keys?ar=Object.keys:ar=function(e){var t,n=[];for(t in e)B(e,t)&&n.push(t);return n};var _c={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function yc(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return ve(r)?r.call(t,n):r}function Oe(e,t,n){var r=""+Math.abs(e),i=t-r.length,o=e>=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var lr=/(\[[^\[]*\])|(\\)?([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,an=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,cr={},pt={};function v(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(pt[e]=i),t&&(pt[t[0]]=function(){return Oe(i.apply(this,arguments),t[1],t[2])}),n&&(pt[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function wc(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Sc(e){var t=e.match(lr),n,r;for(n=0,r=t.length;n<r;n++)pt[t[n]]?t[n]=pt[t[n]]:t[n]=wc(t[n]);return function(i){var o="",a;for(a=0;a<r;a++)o+=ve(t[a])?t[a].call(i,e):t[a];return o}}function ln(e,t){return e.isValid()?(t=ci(t,e.localeData()),cr[t]=cr[t]||Sc(t),cr[t](e)):e.localeData().invalidDate()}function ci(e,t){var n=5;function r(i){return t.longDateFormat(i)||i}for(an.lastIndex=0;n>=0&&an.test(e);)e=e.replace(an,r),an.lastIndex=0,n-=1;return e}var kc={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 bc(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(lr).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var Ec="Invalid date";function vc(){return this._invalidDate}var Oc="%d",Dc=/\d{1,2}/;function Nc(e){return this._ordinal.replace("%d",e)}var Tc={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 Mc(e,t,n,r){var i=this._relativeTime[n];return ve(i)?i(e,t,n,r):i.replace(/%d/i,e)}function Cc(e,t){var n=this._relativeTime[e>0?"future":"past"];return ve(n)?n(t):n.replace(/%s/i,t)}var di={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 he(e){return typeof e=="string"?di[e]||di[e.toLowerCase()]:void 0}function dr(e){var t={},n,r;for(r in e)B(e,r)&&(n=he(r),n&&(t[n]=e[r]));return t}var Vc={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 $c(e){var t=[],n;for(n in e)B(e,n)&&t.push({unit:n,priority:Vc[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var ui=/\d/,de=/\d\d/,fi=/\d{3}/,ur=/\d{4}/,cn=/[+-]?\d{6}/,j=/\d\d?/,hi=/\d\d\d\d?/,pi=/\d\d\d\d\d\d?/,dn=/\d{1,3}/,fr=/\d{1,4}/,un=/[+-]?\d{1,6}/,mt=/\d+/,fn=/[+-]?\d+/,Rc=/Z|[+-]\d\d:?\d\d/gi,hn=/Z|[+-]\d\d(?::?\d\d)?/gi,Pc=/[+-]?\d+(\.\d{1,3})?/,Ft=/[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,gt=/^[1-9]\d?/,hr=/^([1-9]\d|\d)/,pn;pn={};function w(e,t,n){pn[e]=ve(t)?t:function(r,i){return r&&n?n:t}}function xc(e,t){return B(pn,e)?pn[e](t._strict,t._locale):new RegExp(Ic(e))}function Ic(e){return Re(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,o){return n||r||i||o}))}function Re(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function pe(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function R(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=pe(t)),n}var pr={};function W(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),$e(t)&&(r=function(o,a){a[t]=R(o)}),i=e.length,n=0;n<i;n++)pr[e[n]]=r}function Yt(e,t){W(e,function(n,r,i,o){i._w=i._w||{},t(n,i._w,i,o)})}function Bc(e,t,n){t!=null&&B(pr,e)&&pr[e](t,n._a,n,e)}function mn(e){return e%4===0&&e%100!==0||e%400===0}var se=0,Pe=1,De=2,ee=3,we=4,xe=5,tt=6,Ac=7,Fc=8;v("Y",0,0,function(){var e=this.year();return e<=9999?Oe(e,4):"+"+e}),v(0,["YY",2],0,function(){return this.year()%100}),v(0,["YYYY",4],0,"year"),v(0,["YYYYY",5],0,"year"),v(0,["YYYYYY",6,!0],0,"year"),w("Y",fn),w("YY",j,de),w("YYYY",fr,ur),w("YYYYY",un,cn),w("YYYYYY",un,cn),W(["YYYYY","YYYYYY"],se),W("YYYY",function(e,t){t[se]=e.length===2?_.parseTwoDigitYear(e):R(e)}),W("YY",function(e,t){t[se]=_.parseTwoDigitYear(e)}),W("Y",function(e,t){t[se]=parseInt(e,10)});function Lt(e){return mn(e)?366:365}_.parseTwoDigitYear=function(e){return R(e)+(R(e)>68?1900:2e3)};var mi=_t("FullYear",!0);function Yc(){return mn(this.year())}function _t(e,t){return function(n){return n!=null?(gi(this,e,n),_.updateOffset(this,t),this):Ut(this,e)}}function Ut(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 gi(e,t,n){var r,i,o,a,l;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}o=n,a=e.month(),l=e.date(),l=l===29&&a===1&&!mn(o)?28:l,i?r.setUTCFullYear(o,a,l):r.setFullYear(o,a,l)}}function Lc(e){return e=he(e),ve(this[e])?this[e]():this}function Uc(e,t){if(typeof e=="object"){e=dr(e);var n=$c(e),r,i=n.length;for(r=0;r<i;r++)this[n[r].unit](e[n[r].unit])}else if(e=he(e),ve(this[e]))return this[e](t);return this}function Wc(e,t){return(e%t+t)%t}var J;Array.prototype.indexOf?J=Array.prototype.indexOf:J=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function mr(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Wc(t,12);return e+=(t-n)/12,n===1?mn(e)?29:28:31-n%7%2}v("M",["MM",2],"Mo",function(){return this.month()+1}),v("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),v("MMMM",0,0,function(e){return this.localeData().months(this,e)}),w("M",j,gt),w("MM",j,de),w("MMM",function(e,t){return t.monthsShortRegex(e)}),w("MMMM",function(e,t){return t.monthsRegex(e)}),W(["M","MM"],function(e,t){t[Pe]=R(e)-1}),W(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);i!=null?t[Pe]=i:M(n).invalidMonth=e});var jc="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),_i="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),yi=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Hc=Ft,Gc=Ft;function zc(e,t){return e?_e(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||yi).test(t)?"format":"standalone"][e.month()]:_e(this._months)?this._months:this._months.standalone}function Kc(e,t){return e?_e(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[yi.test(t)?"format":"standalone"][e.month()]:_e(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function qc(e,t,n){var r,i,o,a=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"?(i=J.call(this._shortMonthsParse,a),i!==-1?i:null):(i=J.call(this._longMonthsParse,a),i!==-1?i:null):t==="MMM"?(i=J.call(this._shortMonthsParse,a),i!==-1?i:(i=J.call(this._longMonthsParse,a),i!==-1?i:null)):(i=J.call(this._longMonthsParse,a),i!==-1?i:(i=J.call(this._shortMonthsParse,a),i!==-1?i:null))}function Zc(e,t,n){var r,i,o;if(this._monthsParseExact)return qc.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=Ee([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),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 wi(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=R(t);else if(t=e.localeData().monthsParse(t),!$e(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,mr(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function Si(e){return e!=null?(wi(this,e),_.updateOffset(this,!0),this):Ut(this,"Month")}function Jc(){return mr(this.year(),this.month())}function Qc(e){return this._monthsParseExact?(B(this,"_monthsRegex")||ki.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(B(this,"_monthsShortRegex")||(this._monthsShortRegex=Hc),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Xc(e){return this._monthsParseExact?(B(this,"_monthsRegex")||ki.call(this),e?this._monthsStrictRegex:this._monthsRegex):(B(this,"_monthsRegex")||(this._monthsRegex=Gc),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ki(){function e(c,u){return u.length-c.length}var t=[],n=[],r=[],i,o,a,l;for(i=0;i<12;i++)o=Ee([2e3,i]),a=Re(this.monthsShort(o,"")),l=Re(this.months(o,"")),t.push(a),n.push(l),r.push(l),r.push(a);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 ed(e,t,n,r,i,o,a){var l;return e<100&&e>=0?(l=new Date(e+400,t,n,r,i,o,a),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,n,r,i,o,a),l}function Wt(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 gn(e,t,n){var r=7+t-n,i=(7+Wt(e,0,r).getUTCDay()-t)%7;return-i+r-1}function bi(e,t,n,r,i){var o=(7+n-r)%7,a=gn(e,r,i),l=1+7*(t-1)+o+a,c,u;return l<=0?(c=e-1,u=Lt(c)+l):l>Lt(e)?(c=e+1,u=l-Lt(e)):(c=e,u=l),{year:c,dayOfYear:u}}function jt(e,t,n){var r=gn(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,o,a;return i<1?(a=e.year()-1,o=i+Ie(a,t,n)):i>Ie(e.year(),t,n)?(o=i-Ie(e.year(),t,n),a=e.year()+1):(a=e.year(),o=i),{week:o,year:a}}function Ie(e,t,n){var r=gn(e,t,n),i=gn(e+1,t,n);return(Lt(e)-r+i)/7}v("w",["ww",2],"wo","week"),v("W",["WW",2],"Wo","isoWeek"),w("w",j,gt),w("ww",j,de),w("W",j,gt),w("WW",j,de),Yt(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=R(e)});function td(e){return jt(e,this._week.dow,this._week.doy).week}var nd={dow:0,doy:6};function rd(){return this._week.dow}function sd(){return this._week.doy}function id(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function od(e){var t=jt(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}v("d",0,"do","day"),v("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),v("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),v("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),v("e",0,0,"weekday"),v("E",0,0,"isoWeekday"),w("d",j),w("e",j),w("E",j),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)}),Yt(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:M(n).invalidWeekday=e}),Yt(["d","e","E"],function(e,t,n,r){t[r]=R(e)});function ad(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function ld(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function gr(e,t){return e.slice(t,7).concat(e.slice(0,t))}var cd="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ei="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),dd="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ud=Ft,fd=Ft,hd=Ft;function pd(e,t){var n=_e(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?gr(n,this._week.dow):e?n[e.day()]:n}function md(e){return e===!0?gr(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function gd(e){return e===!0?gr(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function _d(e,t,n){var r,i,o,a=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"?(i=J.call(this._weekdaysParse,a),i!==-1?i:null):t==="ddd"?(i=J.call(this._shortWeekdaysParse,a),i!==-1?i:null):(i=J.call(this._minWeekdaysParse,a),i!==-1?i:null):t==="dddd"?(i=J.call(this._weekdaysParse,a),i!==-1||(i=J.call(this._shortWeekdaysParse,a),i!==-1)?i:(i=J.call(this._minWeekdaysParse,a),i!==-1?i:null)):t==="ddd"?(i=J.call(this._shortWeekdaysParse,a),i!==-1||(i=J.call(this._weekdaysParse,a),i!==-1)?i:(i=J.call(this._minWeekdaysParse,a),i!==-1?i:null)):(i=J.call(this._minWeekdaysParse,a),i!==-1||(i=J.call(this._weekdaysParse,a),i!==-1)?i:(i=J.call(this._shortWeekdaysParse,a),i!==-1?i:null))}function yd(e,t,n){var r,i,o;if(this._weekdaysParseExact)return _d.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=Ee([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),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 wd(e){if(!this.isValid())return e!=null?this:NaN;var t=Ut(this,"Day");return e!=null?(e=ad(e,this.localeData()),this.add(e-t,"d")):t}function Sd(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 kd(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=ld(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function bd(e){return this._weekdaysParseExact?(B(this,"_weekdaysRegex")||_r.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(B(this,"_weekdaysRegex")||(this._weekdaysRegex=ud),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ed(e){return this._weekdaysParseExact?(B(this,"_weekdaysRegex")||_r.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(B(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=fd),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function vd(e){return this._weekdaysParseExact?(B(this,"_weekdaysRegex")||_r.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(B(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=hd),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function _r(){function e(d,f){return f.length-d.length}var t=[],n=[],r=[],i=[],o,a,l,c,u;for(o=0;o<7;o++)a=Ee([2e3,1]).day(o),l=Re(this.weekdaysMin(a,"")),c=Re(this.weekdaysShort(a,"")),u=Re(this.weekdays(a,"")),t.push(l),n.push(c),r.push(u),i.push(l),i.push(c),i.push(u);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.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 yr(){return this.hours()%12||12}function Od(){return this.hours()||24}v("H",["HH",2],0,"hour"),v("h",["hh",2],0,yr),v("k",["kk",2],0,Od),v("hmm",0,0,function(){return""+yr.apply(this)+Oe(this.minutes(),2)}),v("hmmss",0,0,function(){return""+yr.apply(this)+Oe(this.minutes(),2)+Oe(this.seconds(),2)}),v("Hmm",0,0,function(){return""+this.hours()+Oe(this.minutes(),2)}),v("Hmmss",0,0,function(){return""+this.hours()+Oe(this.minutes(),2)+Oe(this.seconds(),2)});function vi(e,t){v(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}vi("a",!0),vi("A",!1);function Oi(e,t){return t._meridiemParse}w("a",Oi),w("A",Oi),w("H",j,hr),w("h",j,gt),w("k",j,gt),w("HH",j,de),w("hh",j,de),w("kk",j,de),w("hmm",hi),w("hmmss",pi),w("Hmm",hi),w("Hmmss",pi),W(["H","HH"],ee),W(["k","kk"],function(e,t,n){var r=R(e);t[ee]=r===24?0:r}),W(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),W(["h","hh"],function(e,t,n){t[ee]=R(e),M(n).bigHour=!0}),W("hmm",function(e,t,n){var r=e.length-2;t[ee]=R(e.substr(0,r)),t[we]=R(e.substr(r)),M(n).bigHour=!0}),W("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[ee]=R(e.substr(0,r)),t[we]=R(e.substr(r,2)),t[xe]=R(e.substr(i)),M(n).bigHour=!0}),W("Hmm",function(e,t,n){var r=e.length-2;t[ee]=R(e.substr(0,r)),t[we]=R(e.substr(r))}),W("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[ee]=R(e.substr(0,r)),t[we]=R(e.substr(r,2)),t[xe]=R(e.substr(i))});function Dd(e){return(e+"").toLowerCase().charAt(0)==="p"}var Nd=/[ap]\.?m?\.?/i,Td=_t("Hours",!0);function Md(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var Di={calendar:_c,longDateFormat:kc,invalidDate:Ec,ordinal:Oc,dayOfMonthOrdinalParse:Dc,relativeTime:Tc,months:jc,monthsShort:_i,week:nd,weekdays:cd,weekdaysMin:dd,weekdaysShort:Ei,meridiemParse:Nd},z={},Ht={},Gt;function Cd(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 Ni(e){return e&&e.toLowerCase().replace("_","-")}function Vd(e){for(var t=0,n,r,i,o;t<e.length;){for(o=Ni(e[t]).split("-"),n=o.length,r=Ni(e[t+1]),r=r?r.split("-"):null;n>0;){if(i=_n(o.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&Cd(o,r)>=n-1)break;n--}t++}return Gt}function $d(e){return!!(e&&e.match("^[^/\\\\]*$"))}function _n(e){var t=null,n;if(z[e]===void 0&&typeof module<"u"&&module&&module.exports&&$d(e))try{t=Gt._abbr,n=require,n("./locale/"+e),Ke(t)}catch{z[e]=null}return z[e]}function Ke(e,t){var n;return e&&(ae(t)?n=Be(e):n=wr(e,t),n?Gt=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Gt._abbr}function wr(e,t){if(t!==null){var n,r=Di;if(t.abbr=e,z[e]!=null)li("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=z[e]._config;else if(t.parentLocale!=null)if(z[t.parentLocale]!=null)r=z[t.parentLocale]._config;else if(n=_n(t.parentLocale),n!=null)r=n._config;else return Ht[t.parentLocale]||(Ht[t.parentLocale]=[]),Ht[t.parentLocale].push({name:e,config:t}),null;return z[e]=new or(ir(r,t)),Ht[e]&&Ht[e].forEach(function(i){wr(i.name,i.config)}),Ke(e),z[e]}else return delete z[e],null}function Rd(e,t){if(t!=null){var n,r,i=Di;z[e]!=null&&z[e].parentLocale!=null?z[e].set(ir(z[e]._config,t)):(r=_n(e),r!=null&&(i=r._config),t=ir(i,t),r==null&&(t.abbr=e),n=new or(t),n.parentLocale=z[e],z[e]=n),Ke(e)}else z[e]!=null&&(z[e].parentLocale!=null?(z[e]=z[e].parentLocale,e===Ke()&&Ke(e)):z[e]!=null&&delete z[e]);return z[e]}function Be(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Gt;if(!_e(e)){if(t=_n(e),t)return t;e=[e]}return Vd(e)}function Pd(){return ar(z)}function Sr(e){var t,n=e._a;return n&&M(e).overflow===-2&&(t=n[Pe]<0||n[Pe]>11?Pe:n[De]<1||n[De]>mr(n[se],n[Pe])?De:n[ee]<0||n[ee]>24||n[ee]===24&&(n[we]!==0||n[xe]!==0||n[tt]!==0)?ee:n[we]<0||n[we]>59?we:n[xe]<0||n[xe]>59?xe:n[tt]<0||n[tt]>999?tt:-1,M(e)._overflowDayOfYear&&(t<se||t>De)&&(t=De),M(e)._overflowWeeks&&t===-1&&(t=Ac),M(e)._overflowWeekday&&t===-1&&(t=Fc),M(e).overflow=t),e}var xd=/^\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)?)?$/,Id=/^\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)?)?$/,Bd=/Z|[+-]\d\d(?::?\d\d)?/,yn=[["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]],kr=[["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/]],Ad=/^\/?Date\((-?\d+)/i,Fd=/^(?:(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}))$/,Yd={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 Ti(e){var t,n,r=e._i,i=xd.exec(r)||Id.exec(r),o,a,l,c,u=yn.length,d=kr.length;if(i){for(M(e).iso=!0,t=0,n=u;t<n;t++)if(yn[t][1].exec(i[1])){a=yn[t][0],o=yn[t][2]!==!1;break}if(a==null){e._isValid=!1;return}if(i[3]){for(t=0,n=d;t<n;t++)if(kr[t][1].exec(i[3])){l=(i[2]||" ")+kr[t][0];break}if(l==null){e._isValid=!1;return}}if(!o&&l!=null){e._isValid=!1;return}if(i[4])if(Bd.exec(i[4]))c="Z";else{e._isValid=!1;return}e._f=a+(l||"")+(c||""),Er(e)}else e._isValid=!1}function Ld(e,t,n,r,i,o){var a=[Ud(e),_i.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&a.push(parseInt(o,10)),a}function Ud(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Wd(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function jd(e,t,n){if(e){var r=Ei.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(r!==i)return M(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function Hd(e,t,n){if(e)return Yd[e];if(t)return 0;var r=parseInt(n,10),i=r%100,o=(r-i)/100;return o*60+i}function Mi(e){var t=Fd.exec(Wd(e._i)),n;if(t){if(n=Ld(t[4],t[3],t[2],t[5],t[6],t[7]),!jd(t[1],n,e))return;e._a=n,e._tzm=Hd(t[8],t[9],t[10]),e._d=Wt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),M(e).rfc2822=!0}else e._isValid=!1}function Gd(e){var t=Ad.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Ti(e),e._isValid===!1)delete e._isValid;else return;if(Mi(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:_.createFromInputFallback(e)}_.createFromInputFallback=fe("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 yt(e,t,n){return e??t??n}function zd(e){var t=new Date(_.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function br(e){var t,n,r=[],i,o,a;if(!e._d){for(i=zd(e),e._w&&e._a[De]==null&&e._a[Pe]==null&&Kd(e),e._dayOfYear!=null&&(a=yt(e._a[se],i[se]),(e._dayOfYear>Lt(a)||e._dayOfYear===0)&&(M(e)._overflowDayOfYear=!0),n=Wt(a,0,e._dayOfYear),e._a[Pe]=n.getUTCMonth(),e._a[De]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[ee]===24&&e._a[we]===0&&e._a[xe]===0&&e._a[tt]===0&&(e._nextDay=!0,e._a[ee]=0),e._d=(e._useUTC?Wt:ed).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[ee]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==o&&(M(e).weekdayMismatch=!0)}}function Kd(e){var t,n,r,i,o,a,l,c,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(o=1,a=4,n=yt(t.GG,e._a[se],jt(H(),1,4).year),r=yt(t.W,1),i=yt(t.E,1),(i<1||i>7)&&(c=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,u=jt(H(),o,a),n=yt(t.gg,e._a[se],u.year),r=yt(t.w,u.week),t.d!=null?(i=t.d,(i<0||i>6)&&(c=!0)):t.e!=null?(i=t.e+o,(t.e<0||t.e>6)&&(c=!0)):i=o),r<1||r>Ie(n,o,a)?M(e)._overflowWeeks=!0:c!=null?M(e)._overflowWeekday=!0:(l=bi(n,r,i,o,a),e._a[se]=l.year,e._dayOfYear=l.dayOfYear)}_.ISO_8601=function(){},_.RFC_2822=function(){};function Er(e){if(e._f===_.ISO_8601){Ti(e);return}if(e._f===_.RFC_2822){Mi(e);return}e._a=[],M(e).empty=!0;var t=""+e._i,n,r,i,o,a,l=t.length,c=0,u,d;for(i=ci(e._f,e._locale).match(lr)||[],d=i.length,n=0;n<d;n++)o=i[n],r=(t.match(xc(o,e))||[])[0],r&&(a=t.substr(0,t.indexOf(r)),a.length>0&&M(e).unusedInput.push(a),t=t.slice(t.indexOf(r)+r.length),c+=r.length),pt[o]?(r?M(e).empty=!1:M(e).unusedTokens.push(o),Bc(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[ee]<=12&&M(e).bigHour===!0&&e._a[ee]>0&&(M(e).bigHour=void 0),M(e).parsedDateParts=e._a.slice(0),M(e).meridiem=e._meridiem,e._a[ee]=qd(e._locale,e._a[ee],e._meridiem),u=M(e).era,u!==null&&(e._a[se]=e._locale.erasConvertYear(u,e._a[se])),br(e),Sr(e)}function qd(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 Zd(e){var t,n,r,i,o,a,l=!1,c=e._f.length;if(c===0){M(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;i<c;i++)o=0,a=!1,t=sr({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[i],Er(t),nr(t)&&(a=!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||a)&&(r=o,n=t,a&&(l=!0));ze(e,n||t)}function Jd(e){if(!e._d){var t=dr(e._i),n=t.day===void 0?t.date:t.day;e._a=si([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),br(e)}}function Qd(e){var t=new At(Sr(Ci(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Ci(e){var t=e._i,n=e._f;return e._locale=e._locale||Be(e._l),t===null||n===void 0&&t===""?on({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),ye(t)?new At(Sr(t)):(Bt(t)?e._d=t:_e(n)?Zd(e):n?Er(e):Xd(e),nr(e)||(e._d=null),e))}function Xd(e){var t=e._i;ae(t)?e._d=new Date(_.now()):Bt(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Gd(e):_e(t)?(e._a=si(t.slice(0),function(n){return parseInt(n,10)}),br(e)):et(t)?Jd(e):$e(t)?e._d=new Date(t):_.createFromInputFallback(e)}function Vi(e,t,n,r,i){var o={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(et(e)&&er(e)||_e(e)&&e.length===0)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=n,o._i=e,o._f=t,o._strict=r,Qd(o)}function H(e,t,n,r){return Vi(e,t,n,r,!1)}var eu=fe("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=H.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:on()}),tu=fe("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=H.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:on()});function $i(e,t){var n,r;if(t.length===1&&_e(t[0])&&(t=t[0]),!t.length)return H();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function nu(){var e=[].slice.call(arguments,0);return $i("isBefore",e)}function ru(){var e=[].slice.call(arguments,0);return $i("isAfter",e)}var su=function(){return Date.now?Date.now():+new Date},zt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function iu(e){var t,n=!1,r,i=zt.length;for(t in e)if(B(e,t)&&!(J.call(zt,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<i;++r)if(e[zt[r]]){if(n)return!1;parseFloat(e[zt[r]])!==R(e[zt[r]])&&(n=!0)}return!0}function ou(){return this._isValid}function au(){return Se(NaN)}function wn(e){var t=dr(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,a=t.day||0,l=t.hour||0,c=t.minute||0,u=t.second||0,d=t.millisecond||0;this._isValid=iu(t),this._milliseconds=+d+u*1e3+c*6e4+l*1e3*60*60,this._days=+a+o*7,this._months=+i+r*3+n*12,this._data={},this._locale=Be(),this._bubble()}function Sn(e){return e instanceof wn}function vr(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function lu(e,t,n){var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),o=0,a;for(a=0;a<r;a++)(n&&e[a]!==t[a]||!n&&R(e[a])!==R(t[a]))&&o++;return o+i}function Ri(e,t){v(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)})}Ri("Z",":"),Ri("ZZ",""),w("Z",hn),w("ZZ",hn),W(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Or(hn,e)});var cu=/([\+\-]|\d\d)/gi;function Or(e,t){var n=(t||"").match(e),r,i,o;return n===null?null:(r=n[n.length-1]||[],i=(r+"").match(cu)||["-",0,0],o=+(i[1]*60)+R(i[2]),o===0?0:i[0]==="+"?o:-o)}function Dr(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(ye(e)||Bt(e)?e.valueOf():H(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),_.updateOffset(n,!1),n):H(e).local()}function Nr(e){return-Math.round(e._d.getTimezoneOffset())}_.updateOffset=function(){};function du(e,t,n){var r=this._offset||0,i;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Or(hn,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(i=Nr(this)),this._offset=e,this._isUTC=!0,i!=null&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?Bi(this,Se(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,_.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:Nr(this)}function uu(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function fu(e){return this.utcOffset(0,e)}function hu(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Nr(this),"m")),this}function pu(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Or(Rc,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function mu(e){return this.isValid()?(e=e?H(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 _u(){if(!ae(this._isDSTShifted))return this._isDSTShifted;var e={},t;return sr(e,this),e=Ci(e),e._a?(t=e._isUTC?Ee(e._a):H(e._a),this._isDSTShifted=this.isValid()&&lu(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function yu(){return this.isValid()?!this._isUTC:!1}function wu(){return this.isValid()?this._isUTC:!1}function Pi(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Su=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,ku=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Se(e,t){var n=e,r=null,i,o,a;return Sn(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:$e(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=Su.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:R(r[De])*i,h:R(r[ee])*i,m:R(r[we])*i,s:R(r[xe])*i,ms:R(vr(r[tt]*1e3))*i}):(r=ku.exec(e))?(i=r[1]==="-"?-1:1,n={y:nt(r[2],i),M:nt(r[3],i),w:nt(r[4],i),d:nt(r[5],i),h:nt(r[6],i),m:nt(r[7],i),s:nt(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=bu(H(n.from),H(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),o=new wn(n),Sn(e)&&B(e,"_locale")&&(o._locale=e._locale),Sn(e)&&B(e,"_isValid")&&(o._isValid=e._isValid),o}Se.fn=wn.prototype,Se.invalid=au;function nt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function xi(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 bu(e,t){var n;return e.isValid()&&t.isValid()?(t=Dr(t,e),e.isBefore(t)?n=xi(e,t):(n=xi(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ii(e,t){return function(n,r){var i,o;return r!==null&&!isNaN(+r)&&(li(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),i=Se(n,r),Bi(this,i,e),this}}function Bi(e,t,n,r){var i=t._milliseconds,o=vr(t._days),a=vr(t._months);e.isValid()&&(r=r??!0,a&&wi(e,Ut(e,"Month")+a*n),o&&gi(e,"Date",Ut(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&_.updateOffset(e,o||a))}var Eu=Ii(1,"add"),vu=Ii(-1,"subtract");function Ai(e){return typeof e=="string"||e instanceof String}function Ou(e){return ye(e)||Bt(e)||Ai(e)||$e(e)||Nu(e)||Du(e)||e===null||e===void 0}function Du(e){var t=et(e)&&!er(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"],i,o,a=r.length;for(i=0;i<a;i+=1)o=r[i],n=n||B(e,o);return t&&n}function Nu(e){var t=_e(e),n=!1;return t&&(n=e.filter(function(r){return!$e(r)&&Ai(e)}).length===0),t&&n}function Tu(e){var t=et(e)&&!er(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i,o;for(i=0;i<r.length;i+=1)o=r[i],n=n||B(e,o);return t&&n}function Mu(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 Cu(e,t){arguments.length===1&&(arguments[0]?Ou(arguments[0])?(e=arguments[0],t=void 0):Tu(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||H(),r=Dr(n,this).startOf("day"),i=_.calendarFormat(this,r)||"sameElse",o=t&&(ve(t[i])?t[i].call(this,n):t[i]);return this.format(o||this.localeData().calendar(i,this,H(n)))}function Vu(){return new At(this)}function $u(e,t){var n=ye(e)?e:H(e);return this.isValid()&&n.isValid()?(t=he(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function Ru(e,t){var n=ye(e)?e:H(e);return this.isValid()&&n.isValid()?(t=he(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function Pu(e,t,n,r){var i=ye(e)?e:H(e),o=ye(t)?t:H(t);return this.isValid()&&i.isValid()&&o.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(i,n):!this.isBefore(i,n))&&(r[1]===")"?this.isBefore(o,n):!this.isAfter(o,n))):!1}function xu(e,t){var n=ye(e)?e:H(e),r;return this.isValid()&&n.isValid()?(t=he(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 Iu(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Bu(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Au(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(r=Dr(e,this),!r.isValid())return NaN;switch(i=(r.utcOffset()-this.utcOffset())*6e4,t=he(t),t){case"year":o=kn(this,r)/12;break;case"month":o=kn(this,r);break;case"quarter":o=kn(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-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:pe(o)}function kn(e,t){if(e.date()<t.date())return-kn(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),i,o;return t-r<0?(i=e.clone().add(n-1,"months"),o=(t-r)/(r-i)):(i=e.clone().add(n+1,"months"),o=(t-r)/(i-r)),-(n+o)||0}_.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",_.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Fu(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Yu(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?ln(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ve(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",ln(n,"Z")):ln(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Lu(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,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",i="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]',this.format(n+r+i+o)}function Uu(e){e||(e=this.isUtc()?_.defaultFormatUtc:_.defaultFormat);var t=ln(this,e);return this.localeData().postformat(t)}function Wu(e,t){return this.isValid()&&(ye(e)&&e.isValid()||H(e).isValid())?Se({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ju(e){return this.from(H(),e)}function Hu(e,t){return this.isValid()&&(ye(e)&&e.isValid()||H(e).isValid())?Se({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Gu(e){return this.to(H(),e)}function Fi(e){var t;return e===void 0?this._locale._abbr:(t=Be(e),t!=null&&(this._locale=t),this)}var Yi=fe("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 Li(){return this._locale}var bn=1e3,wt=60*bn,En=60*wt,Ui=(365*400+97)*24*En;function St(e,t){return(e%t+t)%t}function Wi(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-Ui:new Date(e,t,n).valueOf()}function ji(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Ui:Date.UTC(e,t,n)}function zu(e){var t,n;if(e=he(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?ji:Wi,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-=St(t+(this._isUTC?0:this.utcOffset()*wt),En);break;case"minute":t=this._d.valueOf(),t-=St(t,wt);break;case"second":t=this._d.valueOf(),t-=St(t,bn);break}return this._d.setTime(t),_.updateOffset(this,!0),this}function Ku(e){var t,n;if(e=he(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?ji:Wi,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+=En-St(t+(this._isUTC?0:this.utcOffset()*wt),En)-1;break;case"minute":t=this._d.valueOf(),t+=wt-St(t,wt)-1;break;case"second":t=this._d.valueOf(),t+=bn-St(t,bn)-1;break}return this._d.setTime(t),_.updateOffset(this,!0),this}function qu(){return this._d.valueOf()-(this._offset||0)*6e4}function Zu(){return Math.floor(this.valueOf()/1e3)}function Ju(){return new Date(this.valueOf())}function Qu(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Xu(){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 ef(){return this.isValid()?this.toISOString():null}function tf(){return nr(this)}function nf(){return ze({},M(this))}function rf(){return M(this).overflow}function sf(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}v("N",0,0,"eraAbbr"),v("NN",0,0,"eraAbbr"),v("NNN",0,0,"eraAbbr"),v("NNNN",0,0,"eraName"),v("NNNNN",0,0,"eraNarrow"),v("y",["y",1],"yo","eraYear"),v("y",["yy",2],0,"eraYear"),v("y",["yyy",3],0,"eraYear"),v("y",["yyyy",4],0,"eraYear"),w("N",Tr),w("NN",Tr),w("NNN",Tr),w("NNNN",gf),w("NNNNN",_f),W(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?M(n).era=i:M(n).invalidEra=e}),w("y",mt),w("yy",mt),w("yyy",mt),w("yyyy",mt),w("yo",yf),W(["y","yy","yyy","yyyy"],se),W(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[se]=n._locale.eraYearOrdinalParse(e,i):t[se]=parseInt(e,10)});function of(e,t){var n,r,i,o=this._eras||Be("en")._eras;for(n=0,r=o.length;n<r;++n){switch(typeof o[n].since){case"string":i=_(o[n].since).startOf("day"),o[n].since=i.valueOf();break}switch(typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":i=_(o[n].until).startOf("day").valueOf(),o[n].until=i.valueOf();break}}return o}function af(e,t,n){var r,i,o=this.eras(),a,l,c;for(e=e.toUpperCase(),r=0,i=o.length;r<i;++r)if(a=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(a===e)return o[r];break;case"NNNNN":if(c===e)return o[r];break}else if([a,l,c].indexOf(e)>=0)return o[r]}function lf(e,t){var n=e.since<=e.until?1:-1;return t===void 0?_(e.since).year():_(e.since).year()+(t-e.offset)*n}function cf(){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 df(){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 uf(){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 ff(){var e,t,n,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return(this.year()-_(i[e].since).year())*n+i[e].offset;return this.year()}function hf(e){return B(this,"_erasNameRegex")||Mr.call(this),e?this._erasNameRegex:this._erasRegex}function pf(e){return B(this,"_erasAbbrRegex")||Mr.call(this),e?this._erasAbbrRegex:this._erasRegex}function mf(e){return B(this,"_erasNarrowRegex")||Mr.call(this),e?this._erasNarrowRegex:this._erasRegex}function Tr(e,t){return t.erasAbbrRegex(e)}function gf(e,t){return t.erasNameRegex(e)}function _f(e,t){return t.erasNarrowRegex(e)}function yf(e,t){return t._eraYearOrdinalRegex||mt}function Mr(){var e=[],t=[],n=[],r=[],i,o,a,l,c,u=this.eras();for(i=0,o=u.length;i<o;++i)a=Re(u[i].name),l=Re(u[i].abbr),c=Re(u[i].narrow),t.push(a),e.push(l),n.push(c),r.push(a),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")}v(0,["gg",2],0,function(){return this.weekYear()%100}),v(0,["GG",2],0,function(){return this.isoWeekYear()%100});function vn(e,t){v(0,[e,e.length],0,t)}vn("gggg","weekYear"),vn("ggggg","weekYear"),vn("GGGG","isoWeekYear"),vn("GGGGG","isoWeekYear"),w("G",fn),w("g",fn),w("GG",j,de),w("gg",j,de),w("GGGG",fr,ur),w("gggg",fr,ur),w("GGGGG",un,cn),w("ggggg",un,cn),Yt(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=R(e)}),Yt(["gg","GG"],function(e,t,n,r){t[r]=_.parseTwoDigitYear(e)});function wf(e){return Hi.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Sf(e){return Hi.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function kf(){return Ie(this.year(),1,4)}function bf(){return Ie(this.isoWeekYear(),1,4)}function Ef(){var e=this.localeData()._week;return Ie(this.year(),e.dow,e.doy)}function vf(){var e=this.localeData()._week;return Ie(this.weekYear(),e.dow,e.doy)}function Hi(e,t,n,r,i){var o;return e==null?jt(this,r,i).year:(o=Ie(e,r,i),t>o&&(t=o),Of.call(this,e,t,n,r,i))}function Of(e,t,n,r,i){var o=bi(e,t,n,r,i),a=Wt(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}v("Q",0,"Qo","quarter"),w("Q",ui),W("Q",function(e,t){t[Pe]=(R(e)-1)*3});function Df(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}v("D",["DD",2],"Do","date"),w("D",j,gt),w("DD",j,de),w("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),W(["D","DD"],De),W("Do",function(e,t){t[De]=R(e.match(j)[0])});var Gi=_t("Date",!0);v("DDD",["DDDD",3],"DDDo","dayOfYear"),w("DDD",dn),w("DDDD",fi),W(["DDD","DDDD"],function(e,t,n){n._dayOfYear=R(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")}v("m",["mm",2],0,"minute"),w("m",j,hr),w("mm",j,de),W(["m","mm"],we);var Tf=_t("Minutes",!1);v("s",["ss",2],0,"second"),w("s",j,hr),w("ss",j,de),W(["s","ss"],xe);var Mf=_t("Seconds",!1);v("S",0,0,function(){return~~(this.millisecond()/100)}),v(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),v(0,["SSS",3],0,"millisecond"),v(0,["SSSS",4],0,function(){return this.millisecond()*10}),v(0,["SSSSS",5],0,function(){return this.millisecond()*100}),v(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),v(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),v(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),v(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),w("S",dn,ui),w("SS",dn,de),w("SSS",dn,fi);var qe,zi;for(qe="SSSS";qe.length<=9;qe+="S")w(qe,mt);function Cf(e,t){t[tt]=R(("0."+e)*1e3)}for(qe="S";qe.length<=9;qe+="S")W(qe,Cf);zi=_t("Milliseconds",!1),v("z",0,0,"zoneAbbr"),v("zz",0,0,"zoneName");function Vf(){return this._isUTC?"UTC":""}function $f(){return this._isUTC?"Coordinated Universal Time":""}var g=At.prototype;g.add=Eu,g.calendar=Cu,g.clone=Vu,g.diff=Au,g.endOf=Ku,g.format=Uu,g.from=Wu,g.fromNow=ju,g.to=Hu,g.toNow=Gu,g.get=Lc,g.invalidAt=rf,g.isAfter=$u,g.isBefore=Ru,g.isBetween=Pu,g.isSame=xu,g.isSameOrAfter=Iu,g.isSameOrBefore=Bu,g.isValid=tf,g.lang=Yi,g.locale=Fi,g.localeData=Li,g.max=tu,g.min=eu,g.parsingFlags=nf,g.set=Uc,g.startOf=zu,g.subtract=vu,g.toArray=Qu,g.toObject=Xu,g.toDate=Ju,g.toISOString=Yu,g.inspect=Lu,typeof Symbol<"u"&&Symbol.for!=null&&(g[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),g.toJSON=ef,g.toString=Fu,g.unix=Zu,g.valueOf=qu,g.creationData=sf,g.eraName=cf,g.eraNarrow=df,g.eraAbbr=uf,g.eraYear=ff,g.year=mi,g.isLeapYear=Yc,g.weekYear=wf,g.isoWeekYear=Sf,g.quarter=g.quarters=Df,g.month=Si,g.daysInMonth=Jc,g.week=g.weeks=id,g.isoWeek=g.isoWeeks=od,g.weeksInYear=Ef,g.weeksInWeekYear=vf,g.isoWeeksInYear=kf,g.isoWeeksInISOWeekYear=bf,g.date=Gi,g.day=g.days=wd,g.weekday=Sd,g.isoWeekday=kd,g.dayOfYear=Nf,g.hour=g.hours=Td,g.minute=g.minutes=Tf,g.second=g.seconds=Mf,g.millisecond=g.milliseconds=zi,g.utcOffset=du,g.utc=fu,g.local=hu,g.parseZone=pu,g.hasAlignedHourOffset=mu,g.isDST=gu,g.isLocal=yu,g.isUtcOffset=wu,g.isUtc=Pi,g.isUTC=Pi,g.zoneAbbr=Vf,g.zoneName=$f,g.dates=fe("dates accessor is deprecated. Use date instead.",Gi),g.months=fe("months accessor is deprecated. Use month instead",Si),g.years=fe("years accessor is deprecated. Use year instead",mi),g.zone=fe("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",uu),g.isDSTShifted=fe("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",_u);function Rf(e){return H(e*1e3)}function Pf(){return H.apply(null,arguments).parseZone()}function Ki(e){return e}var A=or.prototype;A.calendar=yc,A.longDateFormat=bc,A.invalidDate=vc,A.ordinal=Nc,A.preparse=Ki,A.postformat=Ki,A.relativeTime=Mc,A.pastFuture=Cc,A.set=gc,A.eras=of,A.erasParse=af,A.erasConvertYear=lf,A.erasAbbrRegex=pf,A.erasNameRegex=hf,A.erasNarrowRegex=mf,A.months=zc,A.monthsShort=Kc,A.monthsParse=Zc,A.monthsRegex=Xc,A.monthsShortRegex=Qc,A.week=td,A.firstDayOfYear=sd,A.firstDayOfWeek=rd,A.weekdays=pd,A.weekdaysMin=gd,A.weekdaysShort=md,A.weekdaysParse=yd,A.weekdaysRegex=bd,A.weekdaysShortRegex=Ed,A.weekdaysMinRegex=vd,A.isPM=Dd,A.meridiem=Md;function On(e,t,n,r){var i=Be(),o=Ee().set(r,t);return i[n](o,e)}function qi(e,t,n){if($e(e)&&(t=e,e=void 0),e=e||"",t!=null)return On(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=On(e,r,n,"month");return i}function Cr(e,t,n,r){typeof e=="boolean"?($e(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,$e(t)&&(n=t,t=void 0),t=t||"");var i=Be(),o=e?i._week.dow:0,a,l=[];if(n!=null)return On(t,(n+o)%7,r,"day");for(a=0;a<7;a++)l[a]=On(t,(a+o)%7,r,"day");return l}function xf(e,t){return qi(e,t,"months")}function If(e,t){return qi(e,t,"monthsShort")}function Bf(e,t,n){return Cr(e,t,n,"weekdays")}function Af(e,t,n){return Cr(e,t,n,"weekdaysShort")}function Ff(e,t,n){return Cr(e,t,n,"weekdaysMin")}Ke("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=R(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}}),_.lang=fe("moment.lang is deprecated. Use moment.locale instead.",Ke),_.langData=fe("moment.langData is deprecated. Use moment.localeData instead.",Be);var Ae=Math.abs;function Yf(){var e=this._data;return this._milliseconds=Ae(this._milliseconds),this._days=Ae(this._days),this._months=Ae(this._months),e.milliseconds=Ae(e.milliseconds),e.seconds=Ae(e.seconds),e.minutes=Ae(e.minutes),e.hours=Ae(e.hours),e.months=Ae(e.months),e.years=Ae(e.years),this}function Zi(e,t,n,r){var i=Se(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Lf(e,t){return Zi(this,e,t,1)}function Uf(e,t){return Zi(this,e,t,-1)}function Ji(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,i,o,a,l,c;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=Ji(Vr(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=pe(e/1e3),r.seconds=i%60,o=pe(i/60),r.minutes=o%60,a=pe(o/60),r.hours=a%24,t+=pe(a/24),c=pe(Qi(t)),n+=c,t-=Ji(Vr(c)),l=pe(n/12),n%=12,r.days=t,r.months=n,r.years=l,this}function Qi(e){return e*4800/146097}function Vr(e){return e*146097/4800}function jf(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=he(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+Qi(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Vr(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 Fe(e){return function(){return this.as(e)}}var Xi=Fe("ms"),Hf=Fe("s"),Gf=Fe("m"),zf=Fe("h"),Kf=Fe("d"),qf=Fe("w"),Zf=Fe("M"),Jf=Fe("Q"),Qf=Fe("y"),Xf=Xi;function eh(){return Se(this)}function th(e){return e=he(e),this.isValid()?this[e+"s"]():NaN}function rt(e){return function(){return this.isValid()?this._data[e]:NaN}}var nh=rt("milliseconds"),rh=rt("seconds"),sh=rt("minutes"),ih=rt("hours"),oh=rt("days"),ah=rt("months"),lh=rt("years");function ch(){return pe(this.days()/7)}var Ye=Math.round,kt={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function dh(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function uh(e,t,n,r){var i=Se(e).abs(),o=Ye(i.as("s")),a=Ye(i.as("m")),l=Ye(i.as("h")),c=Ye(i.as("d")),u=Ye(i.as("M")),d=Ye(i.as("w")),f=Ye(i.as("y")),h=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||a<=1&&["m"]||a<n.m&&["mm",a]||l<=1&&["h"]||l<n.h&&["hh",l]||c<=1&&["d"]||c<n.d&&["dd",c];return n.w!=null&&(h=h||d<=1&&["w"]||d<n.w&&["ww",d]),h=h||u<=1&&["M"]||u<n.M&&["MM",u]||f<=1&&["y"]||["yy",f],h[2]=t,h[3]=+e>0,h[4]=r,dh.apply(null,h)}function fh(e){return e===void 0?Ye:typeof e=="function"?(Ye=e,!0):!1}function hh(e,t){return kt[e]===void 0?!1:t===void 0?kt[e]:(kt[e]=t,e==="s"&&(kt.ss=t-1),!0)}function ph(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=kt,i,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},kt,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),o=uh(this,!n,r,i),n&&(o=i.pastFuture(+this,o)),i.postformat(o)}var $r=Math.abs;function bt(e){return(e>0)-(e<0)||+e}function Dn(){if(!this.isValid())return this.localeData().invalidDate();var e=$r(this._milliseconds)/1e3,t=$r(this._days),n=$r(this._months),r,i,o,a,l=this.asSeconds(),c,u,d,f;return l?(r=pe(e/60),i=pe(r/60),e%=60,r%=60,o=pe(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",c=l<0?"-":"",u=bt(this._months)!==bt(l)?"-":"",d=bt(this._days)!==bt(l)?"-":"",f=bt(this._milliseconds)!==bt(l)?"-":"",c+"P"+(o?u+o+"Y":"")+(n?u+n+"M":"")+(t?d+t+"D":"")+(i||r||e?"T":"")+(i?f+i+"H":"")+(r?f+r+"M":"")+(e?f+a+"S":"")):"P0D"}var I=wn.prototype;I.isValid=ou,I.abs=Yf,I.add=Lf,I.subtract=Uf,I.as=jf,I.asMilliseconds=Xi,I.asSeconds=Hf,I.asMinutes=Gf,I.asHours=zf,I.asDays=Kf,I.asWeeks=qf,I.asMonths=Zf,I.asQuarters=Jf,I.asYears=Qf,I.valueOf=Xf,I._bubble=Wf,I.clone=eh,I.get=th,I.milliseconds=nh,I.seconds=rh,I.minutes=sh,I.hours=ih,I.days=oh,I.weeks=ch,I.months=ah,I.years=lh,I.humanize=ph,I.toISOString=Dn,I.toString=Dn,I.toJSON=Dn,I.locale=Fi,I.localeData=Li,I.toIsoString=fe("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Dn),I.lang=Yi,v("X",0,0,"unix"),v("x",0,0,"valueOf"),w("x",fn),w("X",Pc),W("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)}),W("x",function(e,t,n){n._d=new Date(R(e))});//! moment.js
|
|
45
|
-
_.version="2.30.1",pc(H),_.fn=g,_.min=nu,_.max=ru,_.now=su,_.utc=Ee,_.unix=Rf,_.months=xf,_.isDate=Bt,_.locale=Ke,_.invalid=on,_.duration=Se,_.isMoment=ye,_.weekdays=Bf,_.parseZone=Pf,_.localeData=Be,_.isDuration=Sn,_.monthsShort=If,_.weekdaysMin=Ff,_.defineLocale=wr,_.updateLocale=Rd,_.locales=Pd,_.weekdaysShort=Af,_.normalizeUnits=he,_.relativeTimeRounding=fh,_.relativeTimeThreshold=hh,_.calendarFormat=Mu,_.prototype=g,_.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 mh=["title"],Rr=s.defineComponent({__name:"CapeSingleValue",props:{fieldValuePair:{},link:{}},setup(e){const t=e,n=s.computed(()=>t.fieldValuePair.value),r=s.computed(()=>t.fieldValuePair.field),i=s.computed(()=>{let o=`${t.fieldValuePair.value}`;return t.fieldValuePair.field.type=="date"&&(o=_(o).format("dddd, D MMMM YYYY")),o});return(o,a)=>{const l=s.resolveComponent("router-link");return s.openBlock(),s.createElementBlock("span",{class:"cape-single-value",title:r.value.description},[o.link?(s.openBlock(),s.createBlock(l,{key:0,to:r.value.id+"/"+n.value},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(i.value),1)]),_:1},8,["to"])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(i.value),1)],64))],8,mh)}}}),gh={key:0,class:"cape-error cape-value-error"},_h={key:1,class:"cape-value"},yh={key:0,class:"cape-value-null"},wh={key:0,class:"cape-value-multiple"},eo=s.defineComponent({__name:"CapeValue",props:{fieldValue:{},link:{},hideIfEmpty:{}},setup(e){const t=e,n=s.computed(()=>{var o;return(o=t.fieldValue)==null?void 0:o.value}),r=s.computed(()=>{var o;return(o=t.fieldValue)==null?void 0:o.field}),i=s.computed(()=>n.value===void 0||n.value===""||Array.isArray(n)&&n.value.length===0);return(o,a)=>!o.fieldValue||!r.value?(s.openBlock(),s.createElementBlock("div",gh," [Error: field value pair does not exist!] ")):!o.hideIfEmpty||!i.value?(s.openBlock(),s.createElementBlock("div",_h,[i.value?(s.openBlock(),s.createElementBlock("div",yh,"undefined")):(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass("cape-value cape-value-field-"+r.value.id)},[r.value.isMultiple?(s.openBlock(),s.createElementBlock("ol",wh,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.value,(l,c)=>(s.openBlock(),s.createElementBlock("li",{key:c},[s.createVNode(Rr,{"field-value-pair":{field:r.value,value:l},link:o.link},null,8,["field-value-pair","link"])]))),128))])):(s.openBlock(),s.createBlock(Rr,{key:1,"field-value-pair":o.fieldValue,link:o.link},null,8,["field-value-pair","link"]))],2))])):s.createCommentVNode("",!0)}}),Sh={key:0,class:"cape-labelled-value"},kh={key:0,class:"cape-error cape-labelled-value-error"},bh=["title"],Eh={key:1,class:"cape-labelled-value-label"},vh=s.defineComponent({__name:"CapeLabelledValue",props:{fieldValue:{},link:{},hideIfEmpty:{}},setup(e){const t=e,n=s.computed(()=>{var o;return(o=t.fieldValue)==null?void 0:o.value}),r=s.computed(()=>{var o;return(o=t.fieldValue)==null?void 0:o.field}),i=s.computed(()=>n.value===void 0||n.value===""||Array.isArray(n)&&n.value.length===0);return(o,a)=>!o.hideIfEmpty||!i.value?(s.openBlock(),s.createElementBlock("div",Sh,[!o.fieldValue||!r.value?(s.openBlock(),s.createElementBlock("div",kh," [Error, trying to render non-existent field] ")):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[r.value.description!==void 0&&r.value.description!==""?(s.openBlock(),s.createElementBlock("div",{key:0,title:r.value.description,class:"cape-labelled-value-label","data-toggle":"tooltip"},s.toDisplayString(r.value.label),9,bh)):(s.openBlock(),s.createElementBlock("div",Eh,s.toDisplayString(r.value.label),1)),s.createVNode(eo,{link:o.link,"field-value":o.fieldValue},null,8,["link","field-value"])],64))])):s.createCommentVNode("",!0)}}),Oh={class:"cape-filter-label"},Dh=["for"],Nh={class:"cape-filter-mode"},Th=[s.createElementVNode("option",{value:"contains"},"contains",-1),s.createElementVNode("option",{value:"is"},"is",-1),s.createElementVNode("option",{value:"set"},"is present",-1),s.createElementVNode("option",{value:"notSet"},"is not present",-1)],Mh={class:"cape-filter-term"},Ch=["id","placeholder"],Vh=["id","placeholder"],$h=s.defineComponent({__name:"CapeFilterFieldText",props:{filterId:{}},setup(e){const t=e,n=K(),r=s.computed(()=>n.byId(t.filterId)),i=s.computed(()=>r.value.field);return(o,a)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",Oh,[s.createElementVNode("label",{for:"cape-filter-field-input-"+r.value.id,"data-test":"filter-label"},s.toDisplayString(r.value.field.label),9,Dh)]),s.createElementVNode("div",Nh,[r.value.field.changeFilterMode?s.withDirectives((s.openBlock(),s.createElementBlock("select",{key:0,"onUpdate:modelValue":a[0]||(a[0]=l=>r.value.mode=l),"data-test":"filter-mode-select","aria-label":"Filter mode"},Th,512)),[[s.vModelSelect,r.value.mode]]):s.createCommentVNode("",!0)]),s.createElementVNode("div",Mh,[r.value.mode==="contains"?s.withDirectives((s.openBlock(),s.createElementBlock("input",{key:0,id:"cape-filter-field-input-"+r.value.id,"onUpdate:modelValue":a[1]||(a[1]=l=>r.value.term=l),placeholder:i.value.placeholderContains,class:"cape-filter-field-text-term","data-test":"filter-term-input"},null,8,Ch)),[[s.vModelText,r.value.term]]):s.createCommentVNode("",!0),r.value.mode==="is"?s.withDirectives((s.openBlock(),s.createElementBlock("input",{key:1,id:"cape-filter-field-input-"+r.value.id,"onUpdate:modelValue":a[2]||(a[2]=l=>r.value.term=l),placeholder:i.value.placeholderIs,class:"cape-filter-field-text-term","data-test":"filter-term-input"},null,8,Vh)),[[s.vModelText,r.value.term]]):s.createCommentVNode("",!0)])],64))}}),Rh={class:"cape-filter-label"},Ph=["for"],xh={class:"cape-filter-wide-term"},Ih=["id","placeholder"],Bh=s.defineComponent({__name:"CapeFilterFreeText",props:{filterId:{}},setup(e){const t=e,n=K(),r=s.computed(()=>n.byId(t.filterId));return(i,o)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",Rh,[s.createElementVNode("label",{for:"cape-filter-input-"+r.value.id},"Free text",8,Ph)]),s.createElementVNode("div",xh,[s.withDirectives(s.createElementVNode("input",{id:"cape-filter-input-"+r.value.id,"onUpdate:modelValue":o[0]||(o[0]=a=>r.value.term=a),placeholder:r.value.placeholder,class:"cape-filter-freetext-term","data-test":"filter-term-input"},null,8,Ih),[[s.vModelText,r.value.term]])])],64))}}),Ah={class:"cape-filter-field-enum-one-of-checkbox"},Fh=["id","value"],Yh=["for"],Lh=s.defineComponent({__name:"CapeFilterFieldEnumOneOfCheckbox",props:{filterId:{}},setup(e){const t=e,r=K().byId(t.filterId),i=r.field;return(o,a)=>(s.openBlock(),s.createElementBlock("ul",Ah,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(i).values,l=>(s.openBlock(),s.createElementBlock("li",{key:l},[s.withDirectives(s.createElementVNode("input",{id:"cape-filter-field-input-"+s.unref(r).id+"-"+l,"onUpdate:modelValue":a[0]||(a[0]=c=>s.unref(r).oneOfTerms=c),value:l,type:"checkbox"},null,8,Fh),[[s.vModelCheckbox,s.unref(r).oneOfTerms]]),s.createElementVNode("label",{for:"cape-filter-field-input-"+s.unref(r).id+"-"+l},s.toDisplayString(l),9,Yh)]))),128))]))}});function Pr(e){return e===0?!1:Array.isArray(e)&&e.length===0?!0:!e}function Uh(e){return(...t)=>!e(...t)}function Wh(e,t){return e===void 0&&(e="undefined"),e===null&&(e="null"),e===!1&&(e="false"),e.toString().toLowerCase().indexOf(t.trim())!==-1}function to(e,t,n,r){return t?e.filter(i=>Wh(r(i,n),t)).sort((i,o)=>r(i,n).length-r(o,n).length):e}function jh(e){return e.filter(t=>!t.$isLabel)}function xr(e,t){return n=>n.reduce((r,i)=>i[e]&&i[e].length?(r.push({$groupLabel:i[t],$isLabel:!0}),r.concat(i[e])):r,[])}function Hh(e,t,n,r,i){return o=>o.map(a=>{if(!a[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const l=to(a[n],e,t,i);return l.length?{[r]:a[r],[n]:l}:[]})}const no=(...e)=>t=>e.reduce((n,r)=>r(n),t);var Gh={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(e,t){return Pr(e)?"":t?e[t]:e}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const e=this.search||"",t=e.toLowerCase().trim();let n=this.options.concat();return this.internalSearch?n=this.groupValues?this.filterAndFlat(n,t,this.label):to(n,t,this.label,this.customLabel):n=this.groupValues?xr(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(Uh(this.isSelected)):n,this.taggable&&t.length&&!this.isExistingOption(t)&&(this.tagPosition==="bottom"?n.push({isTag:!0,label:e}):n.unshift({isTag:!0,label:e})),n.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(e=>e[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(t=>this.customLabel(t,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0},search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(e,t,n){return no(Hh(t,n,this.groupValues,this.groupLabel,this.customLabel),xr(this.groupValues,this.groupLabel))(e)},flatAndStrip(e){return no(xr(this.groupValues,this.groupLabel),jh)(e)},updateSearch(e){this.search=e},isExistingOption(e){return this.options?this.optionKeys.indexOf(e)>-1:!1},isSelected(e){const t=this.trackBy?e[this.trackBy]:e;return this.valueKeys.indexOf(t)>-1},isOptionDisabled(e){return!!e.$isDisabled},getOptionLabel(e){if(Pr(e))return"";if(e.isTag)return e.label;if(e.$isLabel)return e.$groupLabel;const t=this.customLabel(e,this.label);return Pr(t)?"":t},select(e,t){if(e.$isLabel&&this.groupSelect){this.selectGroup(e);return}if(!(this.blockKeys.indexOf(t)!==-1||this.disabled||e.$isDisabled||e.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(t==="Tab"&&!this.pointerDirty)){if(e.isTag)this.$emit("tag",e.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(e)){t!=="Tab"&&this.removeElement(e);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([e])):this.$emit("update:modelValue",e),this.$emit("select",e,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(e){const t=this.options.find(n=>n[this.groupLabel]===e.$groupLabel);if(t){if(this.wholeGroupSelected(t)){this.$emit("remove",t[this.groupValues],this.id);const n=this.internalValue.filter(r=>t[this.groupValues].indexOf(r)===-1);this.$emit("update:modelValue",n)}else{let n=t[this.groupValues].filter(r=>!(this.isOptionDisabled(r)||this.isSelected(r)));this.max&&n.splice(this.max-this.internalValue.length),this.$emit("select",n,this.id),this.$emit("update:modelValue",this.internalValue.concat(n))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(e){return e[this.groupValues].every(t=>this.isSelected(t)||this.isOptionDisabled(t))},wholeGroupDisabled(e){return e[this.groupValues].every(this.isOptionDisabled)},removeElement(e,t=!0){if(this.disabled||e.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const n=typeof e=="object"?this.valueKeys.indexOf(e[this.trackBy]):this.valueKeys.indexOf(e);if(this.multiple){const r=this.internalValue.slice(0,n).concat(this.internalValue.slice(n+1));this.$emit("update:modelValue",r)}else this.$emit("update:modelValue",null);this.$emit("remove",e,this.id),this.closeOnSelect&&t&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?this.$refs.search!==null&&typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const e=this.$el.getBoundingClientRect().top,t=window.innerHeight-this.$el.getBoundingClientRect().bottom;t>this.maxHeight||t>e||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(t-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(e-40,this.maxHeight))}}},zh={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(e,t){return{"multiselect__option--highlight":e===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(t)}},groupHighlight(e,t){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":t.$isLabel}];const n=this.options.find(r=>r[this.groupLabel]===t.$groupLabel);return n&&!this.wholeGroupDisabled(n)?["multiselect__option--group",{"multiselect__option--highlight":e===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(n)}]:"multiselect__option--disabled"},addPointerElement({key:e}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],e),this.pointerReset()},pointerForward(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(e){this.pointer=e,this.pointerDirty=!0}}},ro={name:"vue-multiselect",mixins:[Gh,zh],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:e=>`and ${e} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)}}};const Kh={ref:"tags",class:"multiselect__tags"},qh={class:"multiselect__tags-wrap"},Zh={class:"multiselect__spinner"},Jh={key:0},Qh={class:"multiselect__option"},Xh={class:"multiselect__option"},ep=s.createTextVNode("No elements found. Consider changing the search query."),tp={class:"multiselect__option"},np=s.createTextVNode("List is empty.");function rp(e,t,n,r,i,o){return s.openBlock(),s.createBlock("div",{tabindex:e.searchable?-1:n.tabindex,class:[{"multiselect--active":e.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":o.isAbove,"multiselect--has-options-group":o.hasOptionGroup},"multiselect"],onFocus:t[14]||(t[14]=a=>e.activate()),onBlur:t[15]||(t[15]=a=>e.searchable?!1:e.deactivate()),onKeydown:[t[16]||(t[16]=s.withKeys(s.withModifiers(a=>e.pointerForward(),["self","prevent"]),["down"])),t[17]||(t[17]=s.withKeys(s.withModifiers(a=>e.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:t[18]||(t[18]=s.withKeys(s.withModifiers(a=>e.addPointerElement(a),["stop","self"]),["enter","tab"])),onKeyup:t[19]||(t[19]=s.withKeys(a=>e.deactivate(),["esc"])),role:"combobox","aria-owns":"listbox-"+e.id},[s.renderSlot(e.$slots,"caret",{toggle:e.toggle},()=>[s.createVNode("div",{onMousedown:t[1]||(t[1]=s.withModifiers(a=>e.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),s.renderSlot(e.$slots,"clear",{search:e.search}),s.createVNode("div",Kh,[s.renderSlot(e.$slots,"selection",{search:e.search,remove:e.removeElement,values:o.visibleValues,isOpen:e.isOpen},()=>[s.withDirectives(s.createVNode("div",qh,[(s.openBlock(!0),s.createBlock(s.Fragment,null,s.renderList(o.visibleValues,(a,l)=>s.renderSlot(e.$slots,"tag",{option:a,search:e.search,remove:e.removeElement},()=>[(s.openBlock(),s.createBlock("span",{class:"multiselect__tag",key:l},[s.createVNode("span",{textContent:s.toDisplayString(e.getOptionLabel(a))},null,8,["textContent"]),s.createVNode("i",{tabindex:"1",onKeypress:s.withKeys(s.withModifiers(c=>e.removeElement(a),["prevent"]),["enter"]),onMousedown:s.withModifiers(c=>e.removeElement(a),["prevent"]),class:"multiselect__tag-icon"},null,40,["onKeypress","onMousedown"])]))])),256))],512),[[s.vShow,o.visibleValues.length>0]]),e.internalValue&&e.internalValue.length>n.limit?s.renderSlot(e.$slots,"limit",{key:0},()=>[s.createVNode("strong",{class:"multiselect__strong",textContent:s.toDisplayString(n.limitText(e.internalValue.length-n.limit))},null,8,["textContent"])]):s.createCommentVNode("v-if",!0)]),s.createVNode(s.Transition,{name:"multiselect__loading"},{default:s.withCtx(()=>[s.renderSlot(e.$slots,"loading",{},()=>[s.withDirectives(s.createVNode("div",Zh,null,512),[[s.vShow,n.loading]])])]),_:3}),e.searchable?(s.openBlock(),s.createBlock("input",{key:0,ref:"search",name:n.name,id:e.id,type:"text",autocomplete:"off",spellcheck:!1,placeholder:e.placeholder,style:o.inputStyle,value:e.search,disabled:n.disabled,tabindex:n.tabindex,onInput:t[2]||(t[2]=a=>e.updateSearch(a.target.value)),onFocus:t[3]||(t[3]=s.withModifiers(a=>e.activate(),["prevent"])),onBlur:t[4]||(t[4]=s.withModifiers(a=>e.deactivate(),["prevent"])),onKeyup:t[5]||(t[5]=s.withKeys(a=>e.deactivate(),["esc"])),onKeydown:[t[6]||(t[6]=s.withKeys(s.withModifiers(a=>e.pointerForward(),["prevent"]),["down"])),t[7]||(t[7]=s.withKeys(s.withModifiers(a=>e.pointerBackward(),["prevent"]),["up"])),t[9]||(t[9]=s.withKeys(s.withModifiers(a=>e.removeLastElement(),["stop"]),["delete"]))],onKeypress:t[8]||(t[8]=s.withKeys(s.withModifiers(a=>e.addPointerElement(a),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+e.id},null,44,["name","id","placeholder","value","disabled","tabindex","aria-controls"])):s.createCommentVNode("v-if",!0),o.isSingleLabelVisible?(s.openBlock(),s.createBlock("span",{key:1,class:"multiselect__single",onMousedown:t[10]||(t[10]=s.withModifiers((...a)=>e.toggle&&e.toggle(...a),["prevent"]))},[s.renderSlot(e.$slots,"singleLabel",{option:o.singleValue},()=>[s.createTextVNode(s.toDisplayString(e.currentOptionLabel),1)])],32)):s.createCommentVNode("v-if",!0),o.isPlaceholderVisible?(s.openBlock(),s.createBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:t[11]||(t[11]=s.withModifiers((...a)=>e.toggle&&e.toggle(...a),["prevent"]))},[s.renderSlot(e.$slots,"placeholder",{},()=>[s.createTextVNode(s.toDisplayString(e.placeholder),1)])],32)):s.createCommentVNode("v-if",!0)],512),s.createVNode(s.Transition,{name:"multiselect"},{default:s.withCtx(()=>[s.withDirectives(s.createVNode("div",{class:"multiselect__content-wrapper",onFocus:t[12]||(t[12]=(...a)=>e.activate&&e.activate(...a)),tabindex:"-1",onMousedown:t[13]||(t[13]=s.withModifiers(()=>{},["prevent"])),style:{maxHeight:e.optimizedHeight+"px"},ref:"list"},[s.createVNode("ul",{class:"multiselect__content",style:o.contentStyle,role:"listbox",id:"listbox-"+e.id},[s.renderSlot(e.$slots,"beforeList"),e.multiple&&e.max===e.internalValue.length?(s.openBlock(),s.createBlock("li",Jh,[s.createVNode("span",Qh,[s.renderSlot(e.$slots,"maxElements",{},()=>[s.createTextVNode("Maximum of "+s.toDisplayString(e.max)+" options selected. First remove a selected option to select another.",1)])])])):s.createCommentVNode("v-if",!0),!e.max||e.internalValue.length<e.max?(s.openBlock(!0),s.createBlock(s.Fragment,{key:1},s.renderList(e.filteredOptions,(a,l)=>(s.openBlock(),s.createBlock("li",{class:"multiselect__element",key:l,id:e.id+"-"+l,role:a&&(a.$isLabel||a.$isDisabled)?null:"option"},[a&&(a.$isLabel||a.$isDisabled)?s.createCommentVNode("v-if",!0):(s.openBlock(),s.createBlock("span",{key:0,class:[e.optionHighlight(l,a),"multiselect__option"],onClick:s.withModifiers(c=>e.select(a),["stop"]),onMouseenter:s.withModifiers(c=>e.pointerSet(l),["self"]),"data-select":a&&a.isTag?e.tagPlaceholder:o.selectLabelText,"data-selected":o.selectedLabelText,"data-deselect":o.deselectLabelText},[s.renderSlot(e.$slots,"option",{option:a,search:e.search,index:l},()=>[s.createVNode("span",null,s.toDisplayString(e.getOptionLabel(a)),1)])],42,["onClick","onMouseenter","data-select","data-selected","data-deselect"])),a&&(a.$isLabel||a.$isDisabled)?(s.openBlock(),s.createBlock("span",{key:1,"data-select":e.groupSelect&&o.selectGroupLabelText,"data-deselect":e.groupSelect&&o.deselectGroupLabelText,class:[e.groupHighlight(l,a),"multiselect__option"],onMouseenter:s.withModifiers(c=>e.groupSelect&&e.pointerSet(l),["self"]),onMousedown:s.withModifiers(c=>e.selectGroup(a),["prevent"])},[s.renderSlot(e.$slots,"option",{option:a,search:e.search,index:l},()=>[s.createVNode("span",null,s.toDisplayString(e.getOptionLabel(a)),1)])],42,["data-select","data-deselect","onMouseenter","onMousedown"])):s.createCommentVNode("v-if",!0)],8,["id","role"]))),128)):s.createCommentVNode("v-if",!0),s.withDirectives(s.createVNode("li",null,[s.createVNode("span",Xh,[s.renderSlot(e.$slots,"noResult",{search:e.search},()=>[ep])])],512),[[s.vShow,n.showNoResults&&e.filteredOptions.length===0&&e.search&&!n.loading]]),s.withDirectives(s.createVNode("li",null,[s.createVNode("span",tp,[s.renderSlot(e.$slots,"noOptions",{},()=>[np])])],512),[[s.vShow,n.showNoOptions&&(e.options.length===0||o.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!n.loading]]),s.renderSlot(e.$slots,"afterList")],12,["id"])],36),[[s.vShow,e.isOpen]])]),_:3})],42,["tabindex","aria-owns"])}ro.render=rp;const sp=s.defineComponent({__name:"CapeFilterFieldEnumOneOfMultiselect",props:{filterId:{}},setup(e){const t=e,r=K().byId(t.filterId),i=r.field;return(o,a)=>(s.openBlock(),s.createBlock(s.unref(ro),{id:"filter-multiselect-"+s.unref(i).id,modelValue:s.unref(r).oneOfTerms,"onUpdate:modelValue":a[0]||(a[0]=l=>s.unref(r).oneOfTerms=l),"clear-on-select":!1,"close-on-select":!0,multiple:!0,options:s.unref(i).values,"preserve-search":!0,placeholder:"Select (1 or more)"},null,8,["id","modelValue","options"]))}}),ip=["aria-label"],op=s.createElementVNode("option",{key:"",value:""},null,-1),ap=["value"],lp=s.defineComponent({__name:"CapeFilterFieldEnumIsSelect",props:{filterId:{}},setup(e){const t=e,r=K().byId(t.filterId),i=r.field;return(o,a)=>s.withDirectives((s.openBlock(),s.createElementBlock("select",{class:"cape-filter-field-enum-is-select","onUpdate:modelValue":a[0]||(a[0]=l=>s.unref(r).isTerm=l),"aria-label":"Select "+s.unref(i).label+" value."},[op,(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(i).values,l=>(s.openBlock(),s.createElementBlock("option",{key:l,value:l},s.toDisplayString(l),9,ap))),128))],8,ip)),[[s.vModelSelect,s.unref(r).isTerm]])}}),cp={class:"cape-filter-field-enum-is-radio"},dp={class:"form-check form-check-inline"},up=["id"],fp=["for"],hp=[s.createElementVNode("em",null,"any",-1)],pp=["id","value"],mp=["for"],gp=s.defineComponent({__name:"CapeFilterFieldEnumIsRadio",props:{filterId:{}},setup(e){const t=e,r=K().byId(t.filterId),i=r.field;return(o,a)=>(s.openBlock(),s.createElementBlock("ul",cp,[s.createElementVNode("li",dp,[s.withDirectives(s.createElementVNode("input",{id:"cape-filter-field-input-"+s.unref(r).id+"-","onUpdate:modelValue":a[0]||(a[0]=l=>s.unref(r).isTerm=l),type:"radio",value:""},null,8,up),[[s.vModelRadio,s.unref(r).isTerm]]),s.createElementVNode("label",{for:"cape-filter-field-input-"+s.unref(r).id+"-"},hp,8,fp)]),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(i).values,l=>(s.openBlock(),s.createElementBlock("li",{key:l},[s.withDirectives(s.createElementVNode("input",{id:"cape-filter-field-input-"+s.unref(r).id+"-"+l,"onUpdate:modelValue":a[1]||(a[1]=c=>s.unref(r).isTerm=c),value:l,type:"radio"},null,8,pp),[[s.vModelRadio,s.unref(r).isTerm]]),s.createElementVNode("label",{for:"cape-filter-field-input-"+s.unref(r).id+"-"+l},s.toDisplayString(l),9,mp)]))),128))]))}}),_p={class:"cape-filter-label"},yp=["for"],wp={class:"cape-filter-mode"},Sp=[s.createElementVNode("option",{value:"oneOf"},"is one of",-1),s.createElementVNode("option",{value:"is"},"is",-1),s.createElementVNode("option",{value:"set"},"is present",-1),s.createElementVNode("option",{value:"notSet"},"is not present",-1)],kp={class:"cape-filter-term"},bp=s.defineComponent({__name:"CapeFilterFieldEnum",props:{filterId:{}},setup(e){const t=e,r=K().byId(t.filterId),i=r.field;return(o,a)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",_p,[s.createElementVNode("label",{for:"cape-filter-field-input-"+s.unref(r).id,"data-test":"filter-label"},s.toDisplayString(s.unref(r).field.label),9,yp)]),s.createElementVNode("div",wp,[s.unref(r).field.changeFilterMode?s.withDirectives((s.openBlock(),s.createElementBlock("select",{key:0,"onUpdate:modelValue":a[0]||(a[0]=l=>s.unref(r).mode=l),"data-test":"filter-mode-select","aria-label":"Filter mode"},Sp,512)),[[s.vModelSelect,s.unref(r).mode]]):s.createCommentVNode("",!0)]),s.createElementVNode("div",kp,[s.unref(r).mode==="oneOf"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.unref(i).filterInputStyleOnOneOf==="checkbox"?(s.openBlock(),s.createBlock(Lh,{key:0,"filter-id":o.filterId},null,8,["filter-id"])):(s.openBlock(),s.createBlock(sp,{key:1,"filter-id":o.filterId},null,8,["filter-id"]))],64)):s.createCommentVNode("",!0),s.unref(r).mode==="is"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.unref(i).filterInputStyleOnIs==="select"?(s.openBlock(),s.createBlock(lp,{key:0,"filter-id":o.filterId},null,8,["filter-id"])):(s.openBlock(),s.createBlock(gp,{key:1,"filter-id":o.filterId},null,8,["filter-id"]))],64)):s.createCommentVNode("",!0)])],64))}}),Ep={class:"cape-filter-label"},vp=["for"],Op={class:"cape-filter-mode"},Dp=[s.createElementVNode("option",{value:"between"},"is between",-1),s.createElementVNode("option",{value:"is"},"is",-1),s.createElementVNode("option",{value:"set"},"is present",-1),s.createElementVNode("option",{value:"notSet"},"is not present",-1)],Np={class:"cape-filter-term"},Tp=["id","placeholder","min","max","step"],Mp=s.createElementVNode("span",{class:"cape-filter-field-integer-term-term-and"},"and",-1),Cp=["id","placeholder","min","max","step"],Vp=["id","placeholder","min","max","step"],$p=s.defineComponent({__name:"CapeFilterFieldInteger",props:{filterId:{}},setup(e){const t=e,n=K(),r=s.computed(()=>n.byId(t.filterId)),i=s.computed(()=>r.value.field);return(o,a)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",Ep,[s.createElementVNode("label",{for:"cape-filter-field-input-"+r.value.id,"data-test":"filter-label"},s.toDisplayString(r.value.field.label),9,vp)]),s.createElementVNode("div",Op,[r.value.field.changeFilterMode?s.withDirectives((s.openBlock(),s.createElementBlock("select",{key:0,"onUpdate:modelValue":a[0]||(a[0]=l=>r.value.mode=l),"data-test":"filter-mode-select","aria-label":"Filter mode"},Dp,512)),[[s.vModelSelect,r.value.mode]]):s.createCommentVNode("",!0)]),s.createElementVNode("div",Np,[r.value.mode==="between"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.withDirectives(s.createElementVNode("input",{id:"cape-filter-field-input-lower-bound-"+r.value.id,"onUpdate:modelValue":a[1]||(a[1]=l=>r.value.lowerBoundTerm=l),placeholder:Array.isArray(i.value.placeholderBetween)?i.value.placeholderBetween[0]:"",type:"number",min:i.value.min,max:i.value.max,step:i.value.step,class:"cape-filter-field-integer-term-lower-bound","data-test":"filter-term-input-lower-bound"},null,8,Tp),[[s.vModelText,r.value.lowerBoundTerm]]),Mp,s.withDirectives(s.createElementVNode("input",{id:"cape-filter-field-input-upper-bound-"+r.value.id,"onUpdate:modelValue":a[2]||(a[2]=l=>r.value.upperBoundTerm=l),placeholder:Array.isArray(i.value.placeholderBetween)?i.value.placeholderBetween[1]:"",type:"number",min:i.value.min,max:i.value.max,step:i.value.step,class:"cape-filter-field-integer-term-upper-bound","data-test":"filter-term-input-upper-bound"},null,8,Cp),[[s.vModelText,r.value.upperBoundTerm]])],64)):s.createCommentVNode("",!0),r.value.mode==="is"?s.withDirectives((s.openBlock(),s.createElementBlock("input",{key:1,id:"cape-filter-field-input-"+r.value.id,"onUpdate:modelValue":a[3]||(a[3]=l=>r.value.isTerm=l),placeholder:i.value.placeholderIs,type:"number",min:i.value.min,max:i.value.max,step:i.value.step,class:"cape-filter-field-integer-term","data-test":"filter-term-input"},null,8,Vp)),[[s.vModelText,r.value.isTerm]]):s.createCommentVNode("",!0)])],64))}}),Rp={class:"cape-filter-label"},Pp=["for"],xp={class:"cape-filter-mode"},Ip=[s.createElementVNode("option",{value:"between"},"is between",-1),s.createElementVNode("option",{value:"is"},"is",-1),s.createElementVNode("option",{value:"set"},"is present",-1),s.createElementVNode("option",{value:"notSet"},"is not present",-1)],Bp={class:"cape-filter-term"},Ap=["id","placeholder"],Fp=s.createElementVNode("span",{class:"cape-filter-field-date-term-term-and"},"and",-1),Yp=["id","placeholder"],Lp=["id","placeholder"],Up=s.defineComponent({__name:"CapeFilterFieldDate",props:{filterId:{}},setup(e){const t=e,n=K(),r=s.computed(()=>n.byId(t.filterId)),i=s.computed(()=>r.value.field);return(o,a)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",Rp,[s.createElementVNode("label",{for:"cape-filter-field-input-"+r.value.id,"data-test":"filter-label"},s.toDisplayString(r.value.field.label),9,Pp)]),s.createElementVNode("div",xp,[r.value.field.changeFilterMode?s.withDirectives((s.openBlock(),s.createElementBlock("select",{key:0,"onUpdate:modelValue":a[0]||(a[0]=l=>r.value.mode=l),"data-test":"filter-mode-select","aria-label":"Filter mode"},Ip,512)),[[s.vModelSelect,r.value.mode]]):s.createCommentVNode("",!0)]),s.createElementVNode("div",Bp,[r.value.mode==="between"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.withDirectives(s.createElementVNode("input",{id:"cape-filter-field-input-lower-bound-"+r.value.id,"onUpdate:modelValue":a[1]||(a[1]=l=>r.value.lowerBoundTerm=l),placeholder:Array.isArray(i.value.placeholderBetween)?i.value.placeholderBetween[0]:"",class:"cape-filter-field-date-term-term-lower-bound","data-test":"filter-term-input-lower-bound"},null,8,Ap),[[s.vModelText,r.value.lowerBoundTerm]]),Fp,s.withDirectives(s.createElementVNode("input",{id:"cape-filter-field-input-upper-bound-"+r.value.id,"onUpdate:modelValue":a[2]||(a[2]=l=>r.value.upperBoundTerm=l),placeholder:Array.isArray(i.value.placeholderBetween)?i.value.placeholderBetween[1]:"",class:"cape-filter-field-date-term-term-upper-bound","data-test":"filter-term-input-upper-bound"},null,8,Yp),[[s.vModelText,r.value.upperBoundTerm]])],64)):s.createCommentVNode("",!0),r.value.mode==="is"?s.withDirectives((s.openBlock(),s.createElementBlock("input",{key:1,id:"cape-filter-field-input-"+r.value.id,type:"date","onUpdate:modelValue":a[3]||(a[3]=l=>r.value.isTerm=l),placeholder:i.value.placeholderIs,class:"cape-filter-field-date-term-term","data-test":"filter-term-input"},null,8,Lp)),[[s.vModelText,r.value.isTerm]]):s.createCommentVNode("",!0)])],64))}}),Wp=s.defineComponent({name:"CapeAboutPage",components:{CapeRecordCount:Js},template:"#templateCapeAbout",computed:{metadata(){return Ve().metadata}}});function jp(e,t,n){const r=new Blob([new Uint8Array([239,187,191]),t],{type:n});if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveBlob(r,e);else{const i=window.document.createElement("a");i.href=window.URL.createObjectURL(r),i.download=e,document.body.appendChild(i),i.click(),document.body.removeChild(i)}}function Hp(){const e=[[]],t=ft(),n=xt();return t.all.forEach(r=>e[0].push(r.label)),n.all.forEach(r=>{e.push(t.all.map(i=>{const o=r[i.id].value??"";return i.isMultiple&&Array.isArray(o)?o.join("; "):`${o}`}))}),e}function Gp(e){return e.map(n=>'"'+n.map(i=>{let o="";return i!=null&&(o=i.toString()),o.replace(/"/g,'""').replace(/\r\n/g,`
|
|
44
|
+
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var zm={};function Km(e,t){ne.deprecationHandler!=null&&ne.deprecationHandler(e,t),zm[e]||(jm(t),zm[e]=!0)}ne.suppressDeprecationWarnings=!1,ne.deprecationHandler=null;function Hn(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Aw(e){var t,n;for(n in e)Ge(e,n)&&(t=e[n],Hn(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 sd(e,t){var n=Qr({},e),r;for(r in t)Ge(t,r)&&(Fi(e[r])&&Fi(t[r])?(n[r]={},Qr(n[r],e[r]),Qr(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)Ge(e,r)&&!Ge(t,r)&&Fi(e[r])&&(n[r]=Qr({},n[r]));return n}function ld(e){e!=null&&this.set(e)}var cd;Object.keys?cd=Object.keys:cd=function(e){var t,n=[];for(t in e)Ge(e,t)&&n.push(t);return n};var Mw={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Yw(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return Hn(r)?r.call(t,n):r}function Gn(e,t,n){var r=""+Math.abs(e),i=t-r.length,a=e>=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var ud=/(\[[^\[]*\])|(\\)?([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,ac=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,fd={},Ka={};function me(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(Ka[e]=i),t&&(Ka[t[0]]=function(){return Gn(i.apply(this,arguments),t[1],t[2])}),n&&(Ka[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function xw(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Lw(e){var t=e.match(ud),n,r;for(n=0,r=t.length;n<r;n++)Ka[t[n]]?t[n]=Ka[t[n]]:t[n]=xw(t[n]);return function(i){var a="",o;for(o=0;o<r;o++)a+=Hn(t[o])?t[o].call(i,e):t[o];return a}}function oc(e,t){return e.isValid()?(t=qm(t,e.localeData()),fd[t]=fd[t]||Lw(t),fd[t](e)):e.localeData().invalidDate()}function qm(e,t){var n=5;function r(i){return t.longDateFormat(i)||i}for(ac.lastIndex=0;n>=0&&ac.test(e);)e=e.replace(ac,r),ac.lastIndex=0,n-=1;return e}var Vw={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 Fw(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(ud).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var $w="Invalid date";function Uw(){return this._invalidDate}var Bw="%d",Hw=/\d{1,2}/;function Gw(e){return this._ordinal.replace("%d",e)}var Ww={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 jw(e,t,n,r){var i=this._relativeTime[n];return Hn(i)?i(e,t,n,r):i.replace(/%d/i,e)}function zw(e,t){var n=this._relativeTime[e>0?"future":"past"];return Hn(n)?n(t):n.replace(/%s/i,t)}var Xm={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 fn(e){return typeof e=="string"?Xm[e]||Xm[e.toLowerCase()]:void 0}function dd(e){var t={},n,r;for(r in e)Ge(e,r)&&(n=fn(r),n&&(t[n]=e[r]));return t}var Kw={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 qw(e){var t=[],n;for(n in e)Ge(e,n)&&t.push({unit:n,priority:Kw[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var Jm=/\d/,an=/\d\d/,Qm=/\d{3}/,hd=/\d{4}/,sc=/[+-]?\d{6}/,nt=/\d\d?/,Zm=/\d\d\d\d?/,eg=/\d\d\d\d\d\d?/,lc=/\d{1,3}/,vd=/\d{1,4}/,cc=/[+-]?\d{1,6}/,qa=/\d+/,uc=/[+-]?\d+/,Xw=/Z|[+-]\d\d:?\d\d/gi,fc=/Z|[+-]\d\d(?::?\d\d)?/gi,Jw=/[+-]?\d+(\.\d{1,3})?/,ws=/[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,Xa=/^[1-9]\d?/,pd=/^([1-9]\d|\d)/,dc;dc={};function le(e,t,n){dc[e]=Hn(t)?t:function(r,i){return r&&n?n:t}}function Qw(e,t){return Ge(dc,e)?dc[e](t._strict,t._locale):new RegExp(Zw(e))}function Zw(e){return pr(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,a){return n||r||i||a}))}function pr(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function dn(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Le(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=dn(t)),n}var _d={};function Je(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),vr(t)&&(r=function(a,o){o[t]=Le(a)}),i=e.length,n=0;n<i;n++)_d[e[n]]=r}function bs(e,t){Je(e,function(n,r,i,a){i._w=i._w||{},t(n,i._w,i,a)})}function eb(e,t,n){t!=null&&Ge(_d,e)&&_d[e](t,n._a,n,e)}function hc(e){return e%4===0&&e%100!==0||e%400===0}var Mt=0,_r=1,Wn=2,Tt=3,Cn=4,mr=5,$i=6,tb=7,nb=8;me("Y",0,0,function(){var e=this.year();return e<=9999?Gn(e,4):"+"+e}),me(0,["YY",2],0,function(){return this.year()%100}),me(0,["YYYY",4],0,"year"),me(0,["YYYYY",5],0,"year"),me(0,["YYYYYY",6,!0],0,"year"),le("Y",uc),le("YY",nt,an),le("YYYY",vd,hd),le("YYYYY",cc,sc),le("YYYYYY",cc,sc),Je(["YYYYY","YYYYYY"],Mt),Je("YYYY",function(e,t){t[Mt]=e.length===2?ne.parseTwoDigitYear(e):Le(e)}),Je("YY",function(e,t){t[Mt]=ne.parseTwoDigitYear(e)}),Je("Y",function(e,t){t[Mt]=parseInt(e,10)});function ks(e){return hc(e)?366:365}ne.parseTwoDigitYear=function(e){return Le(e)+(Le(e)>68?1900:2e3)};var tg=Ja("FullYear",!0);function rb(){return hc(this.year())}function Ja(e,t){return function(n){return n!=null?(ng(this,e,n),ne.updateOffset(this,t),this):Cs(this,e)}}function Cs(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 ng(e,t,n){var r,i,a,o,s;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}a=n,o=e.month(),s=e.date(),s=s===29&&o===1&&!hc(a)?28:s,i?r.setUTCFullYear(a,o,s):r.setFullYear(a,o,s)}}function ib(e){return e=fn(e),Hn(this[e])?this[e]():this}function ab(e,t){if(typeof e=="object"){e=dd(e);var n=qw(e),r,i=n.length;for(r=0;r<i;r++)this[n[r].unit](e[n[r].unit])}else if(e=fn(e),Hn(this[e]))return this[e](t);return this}function ob(e,t){return(e%t+t)%t}var ht;Array.prototype.indexOf?ht=Array.prototype.indexOf:ht=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function md(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=ob(t,12);return e+=(t-n)/12,n===1?hc(e)?29:28:31-n%7%2}me("M",["MM",2],"Mo",function(){return this.month()+1}),me("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),me("MMMM",0,0,function(e){return this.localeData().months(this,e)}),le("M",nt,Xa),le("MM",nt,an),le("MMM",function(e,t){return t.monthsShortRegex(e)}),le("MMMM",function(e,t){return t.monthsRegex(e)}),Je(["M","MM"],function(e,t){t[_r]=Le(e)-1}),Je(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);i!=null?t[_r]=i:Oe(n).invalidMonth=e});var sb="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),rg="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ig=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,lb=ws,cb=ws;function ub(e,t){return e?bn(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ig).test(t)?"format":"standalone"][e.month()]:bn(this._months)?this._months:this._months.standalone}function fb(e,t){return e?bn(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ig.test(t)?"format":"standalone"][e.month()]:bn(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function db(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=Bn([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?t==="MMM"?(i=ht.call(this._shortMonthsParse,o),i!==-1?i:null):(i=ht.call(this._longMonthsParse,o),i!==-1?i:null):t==="MMM"?(i=ht.call(this._shortMonthsParse,o),i!==-1?i:(i=ht.call(this._longMonthsParse,o),i!==-1?i:null)):(i=ht.call(this._longMonthsParse,o),i!==-1?i:(i=ht.call(this._shortMonthsParse,o),i!==-1?i:null))}function hb(e,t,n){var r,i,a;if(this._monthsParseExact)return db.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=Bn([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.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 ag(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=Le(t);else if(t=e.localeData().monthsParse(t),!vr(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,md(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function og(e){return e!=null?(ag(this,e),ne.updateOffset(this,!0),this):Cs(this,"Month")}function vb(){return md(this.year(),this.month())}function pb(e){return this._monthsParseExact?(Ge(this,"_monthsRegex")||sg.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(Ge(this,"_monthsShortRegex")||(this._monthsShortRegex=lb),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function _b(e){return this._monthsParseExact?(Ge(this,"_monthsRegex")||sg.call(this),e?this._monthsStrictRegex:this._monthsRegex):(Ge(this,"_monthsRegex")||(this._monthsRegex=cb),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function sg(){function e(c,u){return u.length-c.length}var t=[],n=[],r=[],i,a,o,s;for(i=0;i<12;i++)a=Bn([2e3,i]),o=pr(this.monthsShort(a,"")),s=pr(this.months(a,"")),t.push(o),n.push(s),r.push(s),r.push(o);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 mb(e,t,n,r,i,a,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,a,o),s}function Os(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 vc(e,t,n){var r=7+t-n,i=(7+Os(e,0,r).getUTCDay()-t)%7;return-i+r-1}function lg(e,t,n,r,i){var a=(7+n-r)%7,o=vc(e,r,i),s=1+7*(t-1)+a+o,c,u;return s<=0?(c=e-1,u=ks(c)+s):s>ks(e)?(c=e+1,u=s-ks(e)):(c=e,u=s),{year:c,dayOfYear:u}}function Is(e,t,n){var r=vc(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,a,o;return i<1?(o=e.year()-1,a=i+gr(o,t,n)):i>gr(e.year(),t,n)?(a=i-gr(e.year(),t,n),o=e.year()+1):(o=e.year(),a=i),{week:a,year:o}}function gr(e,t,n){var r=vc(e,t,n),i=vc(e+1,t,n);return(ks(e)-r+i)/7}me("w",["ww",2],"wo","week"),me("W",["WW",2],"Wo","isoWeek"),le("w",nt,Xa),le("ww",nt,an),le("W",nt,Xa),le("WW",nt,an),bs(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Le(e)});function gb(e){return Is(e,this._week.dow,this._week.doy).week}var yb={dow:0,doy:6};function Eb(){return this._week.dow}function Sb(){return this._week.doy}function Tb(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Nb(e){var t=Is(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}me("d",0,"do","day"),me("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),me("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),me("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),me("e",0,0,"weekday"),me("E",0,0,"isoWeekday"),le("d",nt),le("e",nt),le("E",nt),le("dd",function(e,t){return t.weekdaysMinRegex(e)}),le("ddd",function(e,t){return t.weekdaysShortRegex(e)}),le("dddd",function(e,t){return t.weekdaysRegex(e)}),bs(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:Oe(n).invalidWeekday=e}),bs(["d","e","E"],function(e,t,n,r){t[r]=Le(e)});function Db(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function wb(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function gd(e,t){return e.slice(t,7).concat(e.slice(0,t))}var bb="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),cg="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),kb="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Cb=ws,Ob=ws,Ib=ws;function Rb(e,t){var n=bn(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?gd(n,this._week.dow):e?n[e.day()]:n}function Pb(e){return e===!0?gd(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ab(e){return e===!0?gd(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Mb(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=Bn([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?t==="dddd"?(i=ht.call(this._weekdaysParse,o),i!==-1?i:null):t==="ddd"?(i=ht.call(this._shortWeekdaysParse,o),i!==-1?i:null):(i=ht.call(this._minWeekdaysParse,o),i!==-1?i:null):t==="dddd"?(i=ht.call(this._weekdaysParse,o),i!==-1||(i=ht.call(this._shortWeekdaysParse,o),i!==-1)?i:(i=ht.call(this._minWeekdaysParse,o),i!==-1?i:null)):t==="ddd"?(i=ht.call(this._shortWeekdaysParse,o),i!==-1||(i=ht.call(this._weekdaysParse,o),i!==-1)?i:(i=ht.call(this._minWeekdaysParse,o),i!==-1?i:null)):(i=ht.call(this._minWeekdaysParse,o),i!==-1||(i=ht.call(this._weekdaysParse,o),i!==-1)?i:(i=ht.call(this._shortWeekdaysParse,o),i!==-1?i:null))}function Yb(e,t,n){var r,i,a;if(this._weekdaysParseExact)return Mb.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=Bn([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.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 xb(e){if(!this.isValid())return e!=null?this:NaN;var t=Cs(this,"Day");return e!=null?(e=Db(e,this.localeData()),this.add(e-t,"d")):t}function Lb(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 Vb(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=wb(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Fb(e){return this._weekdaysParseExact?(Ge(this,"_weekdaysRegex")||yd.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Ge(this,"_weekdaysRegex")||(this._weekdaysRegex=Cb),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function $b(e){return this._weekdaysParseExact?(Ge(this,"_weekdaysRegex")||yd.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Ge(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ob),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ub(e){return this._weekdaysParseExact?(Ge(this,"_weekdaysRegex")||yd.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Ge(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ib),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function yd(){function e(f,d){return d.length-f.length}var t=[],n=[],r=[],i=[],a,o,s,c,u;for(a=0;a<7;a++)o=Bn([2e3,1]).day(a),s=pr(this.weekdaysMin(o,"")),c=pr(this.weekdaysShort(o,"")),u=pr(this.weekdays(o,"")),t.push(s),n.push(c),r.push(u),i.push(s),i.push(c),i.push(u);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.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 Ed(){return this.hours()%12||12}function Bb(){return this.hours()||24}me("H",["HH",2],0,"hour"),me("h",["hh",2],0,Ed),me("k",["kk",2],0,Bb),me("hmm",0,0,function(){return""+Ed.apply(this)+Gn(this.minutes(),2)}),me("hmmss",0,0,function(){return""+Ed.apply(this)+Gn(this.minutes(),2)+Gn(this.seconds(),2)}),me("Hmm",0,0,function(){return""+this.hours()+Gn(this.minutes(),2)}),me("Hmmss",0,0,function(){return""+this.hours()+Gn(this.minutes(),2)+Gn(this.seconds(),2)});function ug(e,t){me(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}ug("a",!0),ug("A",!1);function fg(e,t){return t._meridiemParse}le("a",fg),le("A",fg),le("H",nt,pd),le("h",nt,Xa),le("k",nt,Xa),le("HH",nt,an),le("hh",nt,an),le("kk",nt,an),le("hmm",Zm),le("hmmss",eg),le("Hmm",Zm),le("Hmmss",eg),Je(["H","HH"],Tt),Je(["k","kk"],function(e,t,n){var r=Le(e);t[Tt]=r===24?0:r}),Je(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),Je(["h","hh"],function(e,t,n){t[Tt]=Le(e),Oe(n).bigHour=!0}),Je("hmm",function(e,t,n){var r=e.length-2;t[Tt]=Le(e.substr(0,r)),t[Cn]=Le(e.substr(r)),Oe(n).bigHour=!0}),Je("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Tt]=Le(e.substr(0,r)),t[Cn]=Le(e.substr(r,2)),t[mr]=Le(e.substr(i)),Oe(n).bigHour=!0}),Je("Hmm",function(e,t,n){var r=e.length-2;t[Tt]=Le(e.substr(0,r)),t[Cn]=Le(e.substr(r))}),Je("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Tt]=Le(e.substr(0,r)),t[Cn]=Le(e.substr(r,2)),t[mr]=Le(e.substr(i))});function Hb(e){return(e+"").toLowerCase().charAt(0)==="p"}var Gb=/[ap]\.?m?\.?/i,Wb=Ja("Hours",!0);function jb(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var dg={calendar:Mw,longDateFormat:Vw,invalidDate:$w,ordinal:Bw,dayOfMonthOrdinalParse:Hw,relativeTime:Ww,months:sb,monthsShort:rg,week:yb,weekdays:bb,weekdaysMin:kb,weekdaysShort:cg,meridiemParse:Gb},st={},Rs={},Ps;function zb(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 hg(e){return e&&e.toLowerCase().replace("_","-")}function Kb(e){for(var t=0,n,r,i,a;t<e.length;){for(a=hg(e[t]).split("-"),n=a.length,r=hg(e[t+1]),r=r?r.split("-"):null;n>0;){if(i=pc(a.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&zb(a,r)>=n-1)break;n--}t++}return Ps}function qb(e){return!!(e&&e.match("^[^/\\\\]*$"))}function pc(e){var t=null,n;if(st[e]===void 0&&typeof module<"u"&&module&&module.exports&&qb(e))try{t=Ps._abbr,n=require,n("./locale/"+e),Zr(t)}catch{st[e]=null}return st[e]}function Zr(e,t){var n;return e&&(jt(t)?n=yr(e):n=Sd(e,t),n?Ps=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ps._abbr}function Sd(e,t){if(t!==null){var n,r=dg;if(t.abbr=e,st[e]!=null)Km("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=st[e]._config;else if(t.parentLocale!=null)if(st[t.parentLocale]!=null)r=st[t.parentLocale]._config;else if(n=pc(t.parentLocale),n!=null)r=n._config;else return Rs[t.parentLocale]||(Rs[t.parentLocale]=[]),Rs[t.parentLocale].push({name:e,config:t}),null;return st[e]=new ld(sd(r,t)),Rs[e]&&Rs[e].forEach(function(i){Sd(i.name,i.config)}),Zr(e),st[e]}else return delete st[e],null}function Xb(e,t){if(t!=null){var n,r,i=dg;st[e]!=null&&st[e].parentLocale!=null?st[e].set(sd(st[e]._config,t)):(r=pc(e),r!=null&&(i=r._config),t=sd(i,t),r==null&&(t.abbr=e),n=new ld(t),n.parentLocale=st[e],st[e]=n),Zr(e)}else st[e]!=null&&(st[e].parentLocale!=null?(st[e]=st[e].parentLocale,e===Zr()&&Zr(e)):st[e]!=null&&delete st[e]);return st[e]}function yr(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ps;if(!bn(e)){if(t=pc(e),t)return t;e=[e]}return Kb(e)}function Jb(){return cd(st)}function Td(e){var t,n=e._a;return n&&Oe(e).overflow===-2&&(t=n[_r]<0||n[_r]>11?_r:n[Wn]<1||n[Wn]>md(n[Mt],n[_r])?Wn:n[Tt]<0||n[Tt]>24||n[Tt]===24&&(n[Cn]!==0||n[mr]!==0||n[$i]!==0)?Tt:n[Cn]<0||n[Cn]>59?Cn:n[mr]<0||n[mr]>59?mr:n[$i]<0||n[$i]>999?$i:-1,Oe(e)._overflowDayOfYear&&(t<Mt||t>Wn)&&(t=Wn),Oe(e)._overflowWeeks&&t===-1&&(t=tb),Oe(e)._overflowWeekday&&t===-1&&(t=nb),Oe(e).overflow=t),e}var Qb=/^\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)?)?$/,Zb=/^\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)?)?$/,ek=/Z|[+-]\d\d(?::?\d\d)?/,_c=[["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]],Nd=[["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/]],tk=/^\/?Date\((-?\d+)/i,nk=/^(?:(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}))$/,rk={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 vg(e){var t,n,r=e._i,i=Qb.exec(r)||Zb.exec(r),a,o,s,c,u=_c.length,f=Nd.length;if(i){for(Oe(e).iso=!0,t=0,n=u;t<n;t++)if(_c[t][1].exec(i[1])){o=_c[t][0],a=_c[t][2]!==!1;break}if(o==null){e._isValid=!1;return}if(i[3]){for(t=0,n=f;t<n;t++)if(Nd[t][1].exec(i[3])){s=(i[2]||" ")+Nd[t][0];break}if(s==null){e._isValid=!1;return}}if(!a&&s!=null){e._isValid=!1;return}if(i[4])if(ek.exec(i[4]))c="Z";else{e._isValid=!1;return}e._f=o+(s||"")+(c||""),wd(e)}else e._isValid=!1}function ik(e,t,n,r,i,a){var o=[ak(e),rg.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&o.push(parseInt(a,10)),o}function ak(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function ok(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function sk(e,t,n){if(e){var r=cg.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(r!==i)return Oe(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function lk(e,t,n){if(e)return rk[e];if(t)return 0;var r=parseInt(n,10),i=r%100,a=(r-i)/100;return a*60+i}function pg(e){var t=nk.exec(ok(e._i)),n;if(t){if(n=ik(t[4],t[3],t[2],t[5],t[6],t[7]),!sk(t[1],n,e))return;e._a=n,e._tzm=lk(t[8],t[9],t[10]),e._d=Os.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),Oe(e).rfc2822=!0}else e._isValid=!1}function ck(e){var t=tk.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(vg(e),e._isValid===!1)delete e._isValid;else return;if(pg(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:ne.createFromInputFallback(e)}ne.createFromInputFallback=un("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 Qa(e,t,n){return e??t??n}function uk(e){var t=new Date(ne.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Dd(e){var t,n,r=[],i,a,o;if(!e._d){for(i=uk(e),e._w&&e._a[Wn]==null&&e._a[_r]==null&&fk(e),e._dayOfYear!=null&&(o=Qa(e._a[Mt],i[Mt]),(e._dayOfYear>ks(o)||e._dayOfYear===0)&&(Oe(e)._overflowDayOfYear=!0),n=Os(o,0,e._dayOfYear),e._a[_r]=n.getUTCMonth(),e._a[Wn]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Tt]===24&&e._a[Cn]===0&&e._a[mr]===0&&e._a[$i]===0&&(e._nextDay=!0,e._a[Tt]=0),e._d=(e._useUTC?Os:mb).apply(null,r),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Tt]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(Oe(e).weekdayMismatch=!0)}}function fk(e){var t,n,r,i,a,o,s,c,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,o=4,n=Qa(t.GG,e._a[Mt],Is(rt(),1,4).year),r=Qa(t.W,1),i=Qa(t.E,1),(i<1||i>7)&&(c=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,u=Is(rt(),a,o),n=Qa(t.gg,e._a[Mt],u.year),r=Qa(t.w,u.week),t.d!=null?(i=t.d,(i<0||i>6)&&(c=!0)):t.e!=null?(i=t.e+a,(t.e<0||t.e>6)&&(c=!0)):i=a),r<1||r>gr(n,a,o)?Oe(e)._overflowWeeks=!0:c!=null?Oe(e)._overflowWeekday=!0:(s=lg(n,r,i,a,o),e._a[Mt]=s.year,e._dayOfYear=s.dayOfYear)}ne.ISO_8601=function(){},ne.RFC_2822=function(){};function wd(e){if(e._f===ne.ISO_8601){vg(e);return}if(e._f===ne.RFC_2822){pg(e);return}e._a=[],Oe(e).empty=!0;var t=""+e._i,n,r,i,a,o,s=t.length,c=0,u,f;for(i=qm(e._f,e._locale).match(ud)||[],f=i.length,n=0;n<f;n++)a=i[n],r=(t.match(Qw(a,e))||[])[0],r&&(o=t.substr(0,t.indexOf(r)),o.length>0&&Oe(e).unusedInput.push(o),t=t.slice(t.indexOf(r)+r.length),c+=r.length),Ka[a]?(r?Oe(e).empty=!1:Oe(e).unusedTokens.push(a),eb(a,r,e)):e._strict&&!r&&Oe(e).unusedTokens.push(a);Oe(e).charsLeftOver=s-c,t.length>0&&Oe(e).unusedInput.push(t),e._a[Tt]<=12&&Oe(e).bigHour===!0&&e._a[Tt]>0&&(Oe(e).bigHour=void 0),Oe(e).parsedDateParts=e._a.slice(0),Oe(e).meridiem=e._meridiem,e._a[Tt]=dk(e._locale,e._a[Tt],e._meridiem),u=Oe(e).era,u!==null&&(e._a[Mt]=e._locale.erasConvertYear(u,e._a[Mt])),Dd(e),Td(e)}function dk(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 hk(e){var t,n,r,i,a,o,s=!1,c=e._f.length;if(c===0){Oe(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;i<c;i++)a=0,o=!1,t=od({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[i],wd(t),id(t)&&(o=!0),a+=Oe(t).charsLeftOver,a+=Oe(t).unusedTokens.length*10,Oe(t).score=a,s?a<r&&(r=a,n=t):(r==null||a<r||o)&&(r=a,n=t,o&&(s=!0));Qr(e,n||t)}function vk(e){if(!e._d){var t=dd(e._i),n=t.day===void 0?t.date:t.day;e._a=Gm([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),Dd(e)}}function pk(e){var t=new Ds(Td(_g(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function _g(e){var t=e._i,n=e._f;return e._locale=e._locale||yr(e._l),t===null||n===void 0&&t===""?ic({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),kn(t)?new Ds(Td(t)):(Ns(t)?e._d=t:bn(n)?hk(e):n?wd(e):_k(e),id(e)||(e._d=null),e))}function _k(e){var t=e._i;jt(t)?e._d=new Date(ne.now()):Ns(t)?e._d=new Date(t.valueOf()):typeof t=="string"?ck(e):bn(t)?(e._a=Gm(t.slice(0),function(n){return parseInt(n,10)}),Dd(e)):Fi(t)?vk(e):vr(t)?e._d=new Date(t):ne.createFromInputFallback(e)}function mg(e,t,n,r,i){var a={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(Fi(e)&&nd(e)||bn(e)&&e.length===0)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=i,a._l=n,a._i=e,a._f=t,a._strict=r,pk(a)}function rt(e,t,n,r){return mg(e,t,n,r,!1)}var mk=un("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=rt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:ic()}),gk=un("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=rt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:ic()});function gg(e,t){var n,r;if(t.length===1&&bn(t[0])&&(t=t[0]),!t.length)return rt();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function yk(){var e=[].slice.call(arguments,0);return gg("isBefore",e)}function Ek(){var e=[].slice.call(arguments,0);return gg("isAfter",e)}var Sk=function(){return Date.now?Date.now():+new Date},As=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Tk(e){var t,n=!1,r,i=As.length;for(t in e)if(Ge(e,t)&&!(ht.call(As,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<i;++r)if(e[As[r]]){if(n)return!1;parseFloat(e[As[r]])!==Le(e[As[r]])&&(n=!0)}return!0}function Nk(){return this._isValid}function Dk(){return On(NaN)}function mc(e){var t=dd(e),n=t.year||0,r=t.quarter||0,i=t.month||0,a=t.week||t.isoWeek||0,o=t.day||0,s=t.hour||0,c=t.minute||0,u=t.second||0,f=t.millisecond||0;this._isValid=Tk(t),this._milliseconds=+f+u*1e3+c*6e4+s*1e3*60*60,this._days=+o+a*7,this._months=+i+r*3+n*12,this._data={},this._locale=yr(),this._bubble()}function gc(e){return e instanceof mc}function bd(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function wk(e,t,n){var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0,o;for(o=0;o<r;o++)(n&&e[o]!==t[o]||!n&&Le(e[o])!==Le(t[o]))&&a++;return a+i}function yg(e,t){me(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+Gn(~~(n/60),2)+t+Gn(~~n%60,2)})}yg("Z",":"),yg("ZZ",""),le("Z",fc),le("ZZ",fc),Je(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=kd(fc,e)});var bk=/([\+\-]|\d\d)/gi;function kd(e,t){var n=(t||"").match(e),r,i,a;return n===null?null:(r=n[n.length-1]||[],i=(r+"").match(bk)||["-",0,0],a=+(i[1]*60)+Le(i[2]),a===0?0:i[0]==="+"?a:-a)}function Cd(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(kn(e)||Ns(e)?e.valueOf():rt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),ne.updateOffset(n,!1),n):rt(e).local()}function Od(e){return-Math.round(e._d.getTimezoneOffset())}ne.updateOffset=function(){};function kk(e,t,n){var r=this._offset||0,i;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=kd(fc,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(i=Od(this)),this._offset=e,this._isUTC=!0,i!=null&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?Ng(this,On(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,ne.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:Od(this)}function Ck(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Ok(e){return this.utcOffset(0,e)}function Ik(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Od(this),"m")),this}function Rk(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=kd(Xw,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Pk(e){return this.isValid()?(e=e?rt(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Ak(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Mk(){if(!jt(this._isDSTShifted))return this._isDSTShifted;var e={},t;return od(e,this),e=_g(e),e._a?(t=e._isUTC?Bn(e._a):rt(e._a),this._isDSTShifted=this.isValid()&&wk(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Yk(){return this.isValid()?!this._isUTC:!1}function xk(){return this.isValid()?this._isUTC:!1}function Eg(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Lk=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Vk=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function On(e,t){var n=e,r=null,i,a,o;return gc(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:vr(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=Lk.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:Le(r[Wn])*i,h:Le(r[Tt])*i,m:Le(r[Cn])*i,s:Le(r[mr])*i,ms:Le(bd(r[$i]*1e3))*i}):(r=Vk.exec(e))?(i=r[1]==="-"?-1:1,n={y:Ui(r[2],i),M:Ui(r[3],i),w:Ui(r[4],i),d:Ui(r[5],i),h:Ui(r[6],i),m:Ui(r[7],i),s:Ui(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(o=Fk(rt(n.from),rt(n.to)),n={},n.ms=o.milliseconds,n.M=o.months),a=new mc(n),gc(e)&&Ge(e,"_locale")&&(a._locale=e._locale),gc(e)&&Ge(e,"_isValid")&&(a._isValid=e._isValid),a}On.fn=mc.prototype,On.invalid=Dk;function Ui(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Sg(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 Fk(e,t){var n;return e.isValid()&&t.isValid()?(t=Cd(t,e),e.isBefore(t)?n=Sg(e,t):(n=Sg(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Tg(e,t){return function(n,r){var i,a;return r!==null&&!isNaN(+r)&&(Km(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."),a=n,n=r,r=a),i=On(n,r),Ng(this,i,e),this}}function Ng(e,t,n,r){var i=t._milliseconds,a=bd(t._days),o=bd(t._months);e.isValid()&&(r=r??!0,o&&ag(e,Cs(e,"Month")+o*n),a&&ng(e,"Date",Cs(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&ne.updateOffset(e,a||o))}var $k=Tg(1,"add"),Uk=Tg(-1,"subtract");function Dg(e){return typeof e=="string"||e instanceof String}function Bk(e){return kn(e)||Ns(e)||Dg(e)||vr(e)||Gk(e)||Hk(e)||e===null||e===void 0}function Hk(e){var t=Fi(e)&&!nd(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"],i,a,o=r.length;for(i=0;i<o;i+=1)a=r[i],n=n||Ge(e,a);return t&&n}function Gk(e){var t=bn(e),n=!1;return t&&(n=e.filter(function(r){return!vr(r)&&Dg(e)}).length===0),t&&n}function Wk(e){var t=Fi(e)&&!nd(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i,a;for(i=0;i<r.length;i+=1)a=r[i],n=n||Ge(e,a);return t&&n}function jk(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 zk(e,t){arguments.length===1&&(arguments[0]?Bk(arguments[0])?(e=arguments[0],t=void 0):Wk(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||rt(),r=Cd(n,this).startOf("day"),i=ne.calendarFormat(this,r)||"sameElse",a=t&&(Hn(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,rt(n)))}function Kk(){return new Ds(this)}function qk(e,t){var n=kn(e)?e:rt(e);return this.isValid()&&n.isValid()?(t=fn(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function Xk(e,t){var n=kn(e)?e:rt(e);return this.isValid()&&n.isValid()?(t=fn(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function Jk(e,t,n,r){var i=kn(e)?e:rt(e),a=kn(t)?t:rt(t);return this.isValid()&&i.isValid()&&a.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(i,n):!this.isBefore(i,n))&&(r[1]===")"?this.isBefore(a,n):!this.isAfter(a,n))):!1}function Qk(e,t){var n=kn(e)?e:rt(e),r;return this.isValid()&&n.isValid()?(t=fn(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 Zk(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function eC(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function tC(e,t,n){var r,i,a;if(!this.isValid())return NaN;if(r=Cd(e,this),!r.isValid())return NaN;switch(i=(r.utcOffset()-this.utcOffset())*6e4,t=fn(t),t){case"year":a=yc(this,r)/12;break;case"month":a=yc(this,r);break;case"quarter":a=yc(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-i)/864e5;break;case"week":a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:dn(a)}function yc(e,t){if(e.date()<t.date())return-yc(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),i,a;return t-r<0?(i=e.clone().add(n-1,"months"),a=(t-r)/(r-i)):(i=e.clone().add(n+1,"months"),a=(t-r)/(i-r)),-(n+a)||0}ne.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",ne.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function nC(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function rC(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?oc(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Hn(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",oc(n,"Z")):oc(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function iC(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(n+r+i+a)}function aC(e){e||(e=this.isUtc()?ne.defaultFormatUtc:ne.defaultFormat);var t=oc(this,e);return this.localeData().postformat(t)}function oC(e,t){return this.isValid()&&(kn(e)&&e.isValid()||rt(e).isValid())?On({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function sC(e){return this.from(rt(),e)}function lC(e,t){return this.isValid()&&(kn(e)&&e.isValid()||rt(e).isValid())?On({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function cC(e){return this.to(rt(),e)}function wg(e){var t;return e===void 0?this._locale._abbr:(t=yr(e),t!=null&&(this._locale=t),this)}var bg=un("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 kg(){return this._locale}var Ec=1e3,Za=60*Ec,Sc=60*Za,Cg=(365*400+97)*24*Sc;function eo(e,t){return(e%t+t)%t}function Og(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-Cg:new Date(e,t,n).valueOf()}function Ig(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Cg:Date.UTC(e,t,n)}function uC(e){var t,n;if(e=fn(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Ig:Og,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-=eo(t+(this._isUTC?0:this.utcOffset()*Za),Sc);break;case"minute":t=this._d.valueOf(),t-=eo(t,Za);break;case"second":t=this._d.valueOf(),t-=eo(t,Ec);break}return this._d.setTime(t),ne.updateOffset(this,!0),this}function fC(e){var t,n;if(e=fn(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Ig:Og,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+=Sc-eo(t+(this._isUTC?0:this.utcOffset()*Za),Sc)-1;break;case"minute":t=this._d.valueOf(),t+=Za-eo(t,Za)-1;break;case"second":t=this._d.valueOf(),t+=Ec-eo(t,Ec)-1;break}return this._d.setTime(t),ne.updateOffset(this,!0),this}function dC(){return this._d.valueOf()-(this._offset||0)*6e4}function hC(){return Math.floor(this.valueOf()/1e3)}function vC(){return new Date(this.valueOf())}function pC(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function _C(){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 mC(){return this.isValid()?this.toISOString():null}function gC(){return id(this)}function yC(){return Qr({},Oe(this))}function EC(){return Oe(this).overflow}function SC(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}me("N",0,0,"eraAbbr"),me("NN",0,0,"eraAbbr"),me("NNN",0,0,"eraAbbr"),me("NNNN",0,0,"eraName"),me("NNNNN",0,0,"eraNarrow"),me("y",["y",1],"yo","eraYear"),me("y",["yy",2],0,"eraYear"),me("y",["yyy",3],0,"eraYear"),me("y",["yyyy",4],0,"eraYear"),le("N",Id),le("NN",Id),le("NNN",Id),le("NNNN",PC),le("NNNNN",AC),Je(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?Oe(n).era=i:Oe(n).invalidEra=e}),le("y",qa),le("yy",qa),le("yyy",qa),le("yyyy",qa),le("yo",MC),Je(["y","yy","yyy","yyyy"],Mt),Je(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Mt]=n._locale.eraYearOrdinalParse(e,i):t[Mt]=parseInt(e,10)});function TC(e,t){var n,r,i,a=this._eras||yr("en")._eras;for(n=0,r=a.length;n<r;++n){switch(typeof a[n].since){case"string":i=ne(a[n].since).startOf("day"),a[n].since=i.valueOf();break}switch(typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":i=ne(a[n].until).startOf("day").valueOf(),a[n].until=i.valueOf();break}}return a}function NC(e,t,n){var r,i,a=this.eras(),o,s,c;for(e=e.toUpperCase(),r=0,i=a.length;r<i;++r)if(o=a[r].name.toUpperCase(),s=a[r].abbr.toUpperCase(),c=a[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return a[r];break;case"NNNN":if(o===e)return a[r];break;case"NNNNN":if(c===e)return a[r];break}else if([o,s,c].indexOf(e)>=0)return a[r]}function DC(e,t){var n=e.since<=e.until?1:-1;return t===void 0?ne(e.since).year():ne(e.since).year()+(t-e.offset)*n}function wC(){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 bC(){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 kC(){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 CC(){var e,t,n,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return(this.year()-ne(i[e].since).year())*n+i[e].offset;return this.year()}function OC(e){return Ge(this,"_erasNameRegex")||Rd.call(this),e?this._erasNameRegex:this._erasRegex}function IC(e){return Ge(this,"_erasAbbrRegex")||Rd.call(this),e?this._erasAbbrRegex:this._erasRegex}function RC(e){return Ge(this,"_erasNarrowRegex")||Rd.call(this),e?this._erasNarrowRegex:this._erasRegex}function Id(e,t){return t.erasAbbrRegex(e)}function PC(e,t){return t.erasNameRegex(e)}function AC(e,t){return t.erasNarrowRegex(e)}function MC(e,t){return t._eraYearOrdinalRegex||qa}function Rd(){var e=[],t=[],n=[],r=[],i,a,o,s,c,u=this.eras();for(i=0,a=u.length;i<a;++i)o=pr(u[i].name),s=pr(u[i].abbr),c=pr(u[i].narrow),t.push(o),e.push(s),n.push(c),r.push(o),r.push(s),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")}me(0,["gg",2],0,function(){return this.weekYear()%100}),me(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Tc(e,t){me(0,[e,e.length],0,t)}Tc("gggg","weekYear"),Tc("ggggg","weekYear"),Tc("GGGG","isoWeekYear"),Tc("GGGGG","isoWeekYear"),le("G",uc),le("g",uc),le("GG",nt,an),le("gg",nt,an),le("GGGG",vd,hd),le("gggg",vd,hd),le("GGGGG",cc,sc),le("ggggg",cc,sc),bs(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=Le(e)}),bs(["gg","GG"],function(e,t,n,r){t[r]=ne.parseTwoDigitYear(e)});function YC(e){return Rg.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function xC(e){return Rg.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function LC(){return gr(this.year(),1,4)}function VC(){return gr(this.isoWeekYear(),1,4)}function FC(){var e=this.localeData()._week;return gr(this.year(),e.dow,e.doy)}function $C(){var e=this.localeData()._week;return gr(this.weekYear(),e.dow,e.doy)}function Rg(e,t,n,r,i){var a;return e==null?Is(this,r,i).year:(a=gr(e,r,i),t>a&&(t=a),UC.call(this,e,t,n,r,i))}function UC(e,t,n,r,i){var a=lg(e,t,n,r,i),o=Os(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}me("Q",0,"Qo","quarter"),le("Q",Jm),Je("Q",function(e,t){t[_r]=(Le(e)-1)*3});function BC(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}me("D",["DD",2],"Do","date"),le("D",nt,Xa),le("DD",nt,an),le("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),Je(["D","DD"],Wn),Je("Do",function(e,t){t[Wn]=Le(e.match(nt)[0])});var Pg=Ja("Date",!0);me("DDD",["DDDD",3],"DDDo","dayOfYear"),le("DDD",lc),le("DDDD",Qm),Je(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Le(e)});function HC(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}me("m",["mm",2],0,"minute"),le("m",nt,pd),le("mm",nt,an),Je(["m","mm"],Cn);var GC=Ja("Minutes",!1);me("s",["ss",2],0,"second"),le("s",nt,pd),le("ss",nt,an),Je(["s","ss"],mr);var WC=Ja("Seconds",!1);me("S",0,0,function(){return~~(this.millisecond()/100)}),me(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),me(0,["SSS",3],0,"millisecond"),me(0,["SSSS",4],0,function(){return this.millisecond()*10}),me(0,["SSSSS",5],0,function(){return this.millisecond()*100}),me(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),me(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),me(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),me(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),le("S",lc,Jm),le("SS",lc,an),le("SSS",lc,Qm);var ei,Ag;for(ei="SSSS";ei.length<=9;ei+="S")le(ei,qa);function jC(e,t){t[$i]=Le(("0."+e)*1e3)}for(ei="S";ei.length<=9;ei+="S")Je(ei,jC);Ag=Ja("Milliseconds",!1),me("z",0,0,"zoneAbbr"),me("zz",0,0,"zoneName");function zC(){return this._isUTC?"UTC":""}function KC(){return this._isUTC?"Coordinated Universal Time":""}var z=Ds.prototype;z.add=$k,z.calendar=zk,z.clone=Kk,z.diff=tC,z.endOf=fC,z.format=aC,z.from=oC,z.fromNow=sC,z.to=lC,z.toNow=cC,z.get=ib,z.invalidAt=EC,z.isAfter=qk,z.isBefore=Xk,z.isBetween=Jk,z.isSame=Qk,z.isSameOrAfter=Zk,z.isSameOrBefore=eC,z.isValid=gC,z.lang=bg,z.locale=wg,z.localeData=kg,z.max=gk,z.min=mk,z.parsingFlags=yC,z.set=ab,z.startOf=uC,z.subtract=Uk,z.toArray=pC,z.toObject=_C,z.toDate=vC,z.toISOString=rC,z.inspect=iC,typeof Symbol<"u"&&Symbol.for!=null&&(z[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),z.toJSON=mC,z.toString=nC,z.unix=hC,z.valueOf=dC,z.creationData=SC,z.eraName=wC,z.eraNarrow=bC,z.eraAbbr=kC,z.eraYear=CC,z.year=tg,z.isLeapYear=rb,z.weekYear=YC,z.isoWeekYear=xC,z.quarter=z.quarters=BC,z.month=og,z.daysInMonth=vb,z.week=z.weeks=Tb,z.isoWeek=z.isoWeeks=Nb,z.weeksInYear=FC,z.weeksInWeekYear=$C,z.isoWeeksInYear=LC,z.isoWeeksInISOWeekYear=VC,z.date=Pg,z.day=z.days=xb,z.weekday=Lb,z.isoWeekday=Vb,z.dayOfYear=HC,z.hour=z.hours=Wb,z.minute=z.minutes=GC,z.second=z.seconds=WC,z.millisecond=z.milliseconds=Ag,z.utcOffset=kk,z.utc=Ok,z.local=Ik,z.parseZone=Rk,z.hasAlignedHourOffset=Pk,z.isDST=Ak,z.isLocal=Yk,z.isUtcOffset=xk,z.isUtc=Eg,z.isUTC=Eg,z.zoneAbbr=zC,z.zoneName=KC,z.dates=un("dates accessor is deprecated. Use date instead.",Pg),z.months=un("months accessor is deprecated. Use month instead",og),z.years=un("years accessor is deprecated. Use year instead",tg),z.zone=un("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Ck),z.isDSTShifted=un("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Mk);function qC(e){return rt(e*1e3)}function XC(){return rt.apply(null,arguments).parseZone()}function Mg(e){return e}var We=ld.prototype;We.calendar=Yw,We.longDateFormat=Fw,We.invalidDate=Uw,We.ordinal=Gw,We.preparse=Mg,We.postformat=Mg,We.relativeTime=jw,We.pastFuture=zw,We.set=Aw,We.eras=TC,We.erasParse=NC,We.erasConvertYear=DC,We.erasAbbrRegex=IC,We.erasNameRegex=OC,We.erasNarrowRegex=RC,We.months=ub,We.monthsShort=fb,We.monthsParse=hb,We.monthsRegex=_b,We.monthsShortRegex=pb,We.week=gb,We.firstDayOfYear=Sb,We.firstDayOfWeek=Eb,We.weekdays=Rb,We.weekdaysMin=Ab,We.weekdaysShort=Pb,We.weekdaysParse=Yb,We.weekdaysRegex=Fb,We.weekdaysShortRegex=$b,We.weekdaysMinRegex=Ub,We.isPM=Hb,We.meridiem=jb;function Nc(e,t,n,r){var i=yr(),a=Bn().set(r,t);return i[n](a,e)}function Yg(e,t,n){if(vr(e)&&(t=e,e=void 0),e=e||"",t!=null)return Nc(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Nc(e,r,n,"month");return i}function Pd(e,t,n,r){typeof e=="boolean"?(vr(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,vr(t)&&(n=t,t=void 0),t=t||"");var i=yr(),a=e?i._week.dow:0,o,s=[];if(n!=null)return Nc(t,(n+a)%7,r,"day");for(o=0;o<7;o++)s[o]=Nc(t,(o+a)%7,r,"day");return s}function JC(e,t){return Yg(e,t,"months")}function QC(e,t){return Yg(e,t,"monthsShort")}function ZC(e,t,n){return Pd(e,t,n,"weekdays")}function eO(e,t,n){return Pd(e,t,n,"weekdaysShort")}function tO(e,t,n){return Pd(e,t,n,"weekdaysMin")}Zr("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=Le(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}}),ne.lang=un("moment.lang is deprecated. Use moment.locale instead.",Zr),ne.langData=un("moment.langData is deprecated. Use moment.localeData instead.",yr);var Er=Math.abs;function nO(){var e=this._data;return this._milliseconds=Er(this._milliseconds),this._days=Er(this._days),this._months=Er(this._months),e.milliseconds=Er(e.milliseconds),e.seconds=Er(e.seconds),e.minutes=Er(e.minutes),e.hours=Er(e.hours),e.months=Er(e.months),e.years=Er(e.years),this}function xg(e,t,n,r){var i=On(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function rO(e,t){return xg(this,e,t,1)}function iO(e,t){return xg(this,e,t,-1)}function Lg(e){return e<0?Math.floor(e):Math.ceil(e)}function aO(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,a,o,s,c;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=Lg(Ad(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=dn(e/1e3),r.seconds=i%60,a=dn(i/60),r.minutes=a%60,o=dn(a/60),r.hours=o%24,t+=dn(o/24),c=dn(Vg(t)),n+=c,t-=Lg(Ad(c)),s=dn(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function Vg(e){return e*4800/146097}function Ad(e){return e*146097/4800}function oO(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=fn(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+Vg(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Ad(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 Sr(e){return function(){return this.as(e)}}var Fg=Sr("ms"),sO=Sr("s"),lO=Sr("m"),cO=Sr("h"),uO=Sr("d"),fO=Sr("w"),dO=Sr("M"),hO=Sr("Q"),vO=Sr("y"),pO=Fg;function _O(){return On(this)}function mO(e){return e=fn(e),this.isValid()?this[e+"s"]():NaN}function Bi(e){return function(){return this.isValid()?this._data[e]:NaN}}var gO=Bi("milliseconds"),yO=Bi("seconds"),EO=Bi("minutes"),SO=Bi("hours"),TO=Bi("days"),NO=Bi("months"),DO=Bi("years");function wO(){return dn(this.days()/7)}var Tr=Math.round,to={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function bO(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function kO(e,t,n,r){var i=On(e).abs(),a=Tr(i.as("s")),o=Tr(i.as("m")),s=Tr(i.as("h")),c=Tr(i.as("d")),u=Tr(i.as("M")),f=Tr(i.as("w")),d=Tr(i.as("y")),v=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||o<=1&&["m"]||o<n.m&&["mm",o]||s<=1&&["h"]||s<n.h&&["hh",s]||c<=1&&["d"]||c<n.d&&["dd",c];return n.w!=null&&(v=v||f<=1&&["w"]||f<n.w&&["ww",f]),v=v||u<=1&&["M"]||u<n.M&&["MM",u]||d<=1&&["y"]||["yy",d],v[2]=t,v[3]=+e>0,v[4]=r,bO.apply(null,v)}function CO(e){return e===void 0?Tr:typeof e=="function"?(Tr=e,!0):!1}function OO(e,t){return to[e]===void 0?!1:t===void 0?to[e]:(to[e]=t,e==="s"&&(to.ss=t-1),!0)}function IO(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=to,i,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},to,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),a=kO(this,!n,r,i),n&&(a=i.pastFuture(+this,a)),i.postformat(a)}var Md=Math.abs;function no(e){return(e>0)-(e<0)||+e}function Dc(){if(!this.isValid())return this.localeData().invalidDate();var e=Md(this._milliseconds)/1e3,t=Md(this._days),n=Md(this._months),r,i,a,o,s=this.asSeconds(),c,u,f,d;return s?(r=dn(e/60),i=dn(r/60),e%=60,r%=60,a=dn(n/12),n%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",c=s<0?"-":"",u=no(this._months)!==no(s)?"-":"",f=no(this._days)!==no(s)?"-":"",d=no(this._milliseconds)!==no(s)?"-":"",c+"P"+(a?u+a+"Y":"")+(n?u+n+"M":"")+(t?f+t+"D":"")+(i||r||e?"T":"")+(i?d+i+"H":"")+(r?d+r+"M":"")+(e?d+o+"S":"")):"P0D"}var Ue=mc.prototype;Ue.isValid=Nk,Ue.abs=nO,Ue.add=rO,Ue.subtract=iO,Ue.as=oO,Ue.asMilliseconds=Fg,Ue.asSeconds=sO,Ue.asMinutes=lO,Ue.asHours=cO,Ue.asDays=uO,Ue.asWeeks=fO,Ue.asMonths=dO,Ue.asQuarters=hO,Ue.asYears=vO,Ue.valueOf=pO,Ue._bubble=aO,Ue.clone=_O,Ue.get=mO,Ue.milliseconds=gO,Ue.seconds=yO,Ue.minutes=EO,Ue.hours=SO,Ue.days=TO,Ue.weeks=wO,Ue.months=NO,Ue.years=DO,Ue.humanize=IO,Ue.toISOString=Dc,Ue.toString=Dc,Ue.toJSON=Dc,Ue.locale=wg,Ue.localeData=kg,Ue.toIsoString=un("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Dc),Ue.lang=bg,me("X",0,0,"unix"),me("x",0,0,"valueOf"),le("x",uc),le("X",Jw),Je("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)}),Je("x",function(e,t,n){n._d=new Date(Le(e))});//! moment.js
|
|
45
|
+
ne.version="2.30.1",Rw(rt),ne.fn=z,ne.min=yk,ne.max=Ek,ne.now=Sk,ne.utc=Bn,ne.unix=qC,ne.months=JC,ne.isDate=Ns,ne.locale=Zr,ne.invalid=ic,ne.duration=On,ne.isMoment=kn,ne.weekdays=ZC,ne.parseZone=XC,ne.localeData=yr,ne.isDuration=gc,ne.monthsShort=QC,ne.weekdaysMin=tO,ne.defineLocale=Sd,ne.updateLocale=Xb,ne.locales=Jb,ne.weekdaysShort=eO,ne.normalizeUnits=fn,ne.relativeTimeRounding=CO,ne.relativeTimeThreshold=OO,ne.calendarFormat=jk,ne.prototype=z,ne.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 RO=["title"],Yd=l.defineComponent({__name:"CapeSingleValue",props:{fieldValuePair:{},link:{}},setup(e){const t=e,n=l.computed(()=>t.fieldValuePair.value),r=l.computed(()=>t.fieldValuePair.field),i=l.computed(()=>{let a=`${t.fieldValuePair.value}`;return t.fieldValuePair.field.type=="date"&&(a=ne(a).format("dddd, D MMMM YYYY")),a});return(a,o)=>{const s=l.resolveComponent("router-link");return l.openBlock(),l.createElementBlock("span",{class:"cape-single-value",title:r.value.description},[a.link?(l.openBlock(),l.createBlock(s,{key:0,to:r.value.id+"/"+n.value},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(i.value),1)]),_:1},8,["to"])):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(l.toDisplayString(i.value),1)],64))],8,RO)}}}),PO={key:0,class:"cape-error cape-value-error"},AO={key:1,class:"cape-value"},MO={key:0,class:"cape-value-null"},YO={key:0,class:"cape-value-multiple"},$g=l.defineComponent({__name:"CapeValue",props:{fieldValue:{},link:{},hideIfEmpty:{}},setup(e){const t=e,n=l.computed(()=>{var a;return(a=t.fieldValue)==null?void 0:a.value}),r=l.computed(()=>{var a;return(a=t.fieldValue)==null?void 0:a.field}),i=l.computed(()=>n.value===void 0||n.value===""||Array.isArray(n)&&n.value.length===0);return(a,o)=>!a.fieldValue||!r.value?(l.openBlock(),l.createElementBlock("div",PO," [Error: field value pair does not exist!] ")):!a.hideIfEmpty||!i.value?(l.openBlock(),l.createElementBlock("div",AO,[i.value?(l.openBlock(),l.createElementBlock("div",MO,"undefined")):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass("cape-value cape-value-field-"+r.value.id)},[r.value.isMultiple?(l.openBlock(),l.createElementBlock("ol",YO,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.value,(s,c)=>(l.openBlock(),l.createElementBlock("li",{key:c},[l.createVNode(Yd,{"field-value-pair":{field:r.value,value:s},link:a.link},null,8,["field-value-pair","link"])]))),128))])):(l.openBlock(),l.createBlock(Yd,{key:1,"field-value-pair":a.fieldValue,link:a.link},null,8,["field-value-pair","link"]))],2))])):l.createCommentVNode("",!0)}}),xO={key:0,class:"cape-labelled-value"},LO={key:0,class:"cape-error cape-labelled-value-error"},VO=["title"],FO={key:1,class:"cape-labelled-value-label"},$O=l.defineComponent({__name:"CapeLabelledValue",props:{fieldValue:{},link:{},hideIfEmpty:{}},setup(e){const t=e,n=l.computed(()=>{var a;return(a=t.fieldValue)==null?void 0:a.value}),r=l.computed(()=>{var a;return(a=t.fieldValue)==null?void 0:a.field}),i=l.computed(()=>n.value===void 0||n.value===""||Array.isArray(n)&&n.value.length===0);return(a,o)=>!a.hideIfEmpty||!i.value?(l.openBlock(),l.createElementBlock("div",xO,[!a.fieldValue||!r.value?(l.openBlock(),l.createElementBlock("div",LO," [Error, trying to render non-existent field] ")):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[r.value.description!==void 0&&r.value.description!==""?(l.openBlock(),l.createElementBlock("div",{key:0,title:r.value.description,class:"cape-labelled-value-label","data-toggle":"tooltip"},l.toDisplayString(r.value.label),9,VO)):(l.openBlock(),l.createElementBlock("div",FO,l.toDisplayString(r.value.label),1)),l.createVNode($g,{link:a.link,"field-value":a.fieldValue},null,8,["link","field-value"])],64))])):l.createCommentVNode("",!0)}}),UO={class:"cape-filter-label"},BO=["for"],HO={class:"cape-filter-mode"},GO=[l.createElementVNode("option",{value:"contains"},"contains",-1),l.createElementVNode("option",{value:"is"},"is",-1),l.createElementVNode("option",{value:"set"},"is present",-1),l.createElementVNode("option",{value:"notSet"},"is not present",-1)],WO={class:"cape-filter-term"},jO=["id","placeholder"],zO=["id","placeholder"],KO=l.defineComponent({__name:"CapeFilterFieldText",props:{filterId:{}},setup(e){const t=e,n=ft(),r=l.computed(()=>n.byId(t.filterId)),i=l.computed(()=>r.value.field);return(a,o)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",UO,[l.createElementVNode("label",{for:"cape-filter-field-input-"+r.value.id,"data-test":"filter-label"},l.toDisplayString(r.value.field.label),9,BO)]),l.createElementVNode("div",HO,[r.value.field.changeFilterMode?l.withDirectives((l.openBlock(),l.createElementBlock("select",{key:0,"onUpdate:modelValue":o[0]||(o[0]=s=>r.value.mode=s),"data-test":"filter-mode-select","aria-label":"Filter mode"},GO,512)),[[l.vModelSelect,r.value.mode]]):l.createCommentVNode("",!0)]),l.createElementVNode("div",WO,[r.value.mode==="contains"?l.withDirectives((l.openBlock(),l.createElementBlock("input",{key:0,id:"cape-filter-field-input-"+r.value.id,"onUpdate:modelValue":o[1]||(o[1]=s=>r.value.term=s),placeholder:i.value.placeholderContains,class:"cape-filter-field-text-term","data-test":"filter-term-input"},null,8,jO)),[[l.vModelText,r.value.term]]):l.createCommentVNode("",!0),r.value.mode==="is"?l.withDirectives((l.openBlock(),l.createElementBlock("input",{key:1,id:"cape-filter-field-input-"+r.value.id,"onUpdate:modelValue":o[2]||(o[2]=s=>r.value.term=s),placeholder:i.value.placeholderIs,class:"cape-filter-field-text-term","data-test":"filter-term-input"},null,8,zO)),[[l.vModelText,r.value.term]]):l.createCommentVNode("",!0)])],64))}}),qO={class:"cape-filter-label"},XO=["for"],JO={class:"cape-filter-wide-term"},QO=["id","placeholder"],ZO=l.defineComponent({__name:"CapeFilterFreeText",props:{filterId:{}},setup(e){const t=e,n=ft(),r=l.computed(()=>n.byId(t.filterId));return(i,a)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",qO,[l.createElementVNode("label",{for:"cape-filter-input-"+r.value.id},"Free text",8,XO)]),l.createElementVNode("div",JO,[l.withDirectives(l.createElementVNode("input",{id:"cape-filter-input-"+r.value.id,"onUpdate:modelValue":a[0]||(a[0]=o=>r.value.term=o),placeholder:r.value.placeholder,class:"cape-filter-freetext-term","data-test":"filter-term-input"},null,8,QO),[[l.vModelText,r.value.term]])])],64))}}),eI={class:"cape-filter-field-enum-one-of-checkbox"},tI=["id","value"],nI=["for"],rI=l.defineComponent({__name:"CapeFilterFieldEnumOneOfCheckbox",props:{filterId:{}},setup(e){const t=e,r=ft().byId(t.filterId),i=r.field;return(a,o)=>(l.openBlock(),l.createElementBlock("ul",eI,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(i).values,s=>(l.openBlock(),l.createElementBlock("li",{key:s},[l.withDirectives(l.createElementVNode("input",{id:"cape-filter-field-input-"+l.unref(r).id+"-"+s,"onUpdate:modelValue":o[0]||(o[0]=c=>l.unref(r).oneOfTerms=c),value:s,type:"checkbox"},null,8,tI),[[l.vModelCheckbox,l.unref(r).oneOfTerms]]),l.createElementVNode("label",{for:"cape-filter-field-input-"+l.unref(r).id+"-"+s},l.toDisplayString(s),9,nI)]))),128))]))}});function xd(e){return e===0?!1:Array.isArray(e)&&e.length===0?!0:!e}function iI(e){return(...t)=>!e(...t)}function aI(e,t){return e===void 0&&(e="undefined"),e===null&&(e="null"),e===!1&&(e="false"),e.toString().toLowerCase().indexOf(t.trim())!==-1}function Ug(e,t,n,r){return t?e.filter(i=>aI(r(i,n),t)).sort((i,a)=>r(i,n).length-r(a,n).length):e}function oI(e){return e.filter(t=>!t.$isLabel)}function Ld(e,t){return n=>n.reduce((r,i)=>i[e]&&i[e].length?(r.push({$groupLabel:i[t],$isLabel:!0}),r.concat(i[e])):r,[])}function sI(e,t,n,r,i){return a=>a.map(o=>{if(!o[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const s=Ug(o[n],e,t,i);return s.length?{[r]:o[r],[n]:s}:[]})}const Bg=(...e)=>t=>e.reduce((n,r)=>r(n),t);var lI={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(e,t){return xd(e)?"":t?e[t]:e}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const e=this.search||"",t=e.toLowerCase().trim();let n=this.options.concat();return this.internalSearch?n=this.groupValues?this.filterAndFlat(n,t,this.label):Ug(n,t,this.label,this.customLabel):n=this.groupValues?Ld(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(iI(this.isSelected)):n,this.taggable&&t.length&&!this.isExistingOption(t)&&(this.tagPosition==="bottom"?n.push({isTag:!0,label:e}):n.unshift({isTag:!0,label:e})),n.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(e=>e[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(t=>this.customLabel(t,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0},search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(e,t,n){return Bg(sI(t,n,this.groupValues,this.groupLabel,this.customLabel),Ld(this.groupValues,this.groupLabel))(e)},flatAndStrip(e){return Bg(Ld(this.groupValues,this.groupLabel),oI)(e)},updateSearch(e){this.search=e},isExistingOption(e){return this.options?this.optionKeys.indexOf(e)>-1:!1},isSelected(e){const t=this.trackBy?e[this.trackBy]:e;return this.valueKeys.indexOf(t)>-1},isOptionDisabled(e){return!!e.$isDisabled},getOptionLabel(e){if(xd(e))return"";if(e.isTag)return e.label;if(e.$isLabel)return e.$groupLabel;const t=this.customLabel(e,this.label);return xd(t)?"":t},select(e,t){if(e.$isLabel&&this.groupSelect){this.selectGroup(e);return}if(!(this.blockKeys.indexOf(t)!==-1||this.disabled||e.$isDisabled||e.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(t==="Tab"&&!this.pointerDirty)){if(e.isTag)this.$emit("tag",e.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(e)){t!=="Tab"&&this.removeElement(e);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([e])):this.$emit("update:modelValue",e),this.$emit("select",e,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(e){const t=this.options.find(n=>n[this.groupLabel]===e.$groupLabel);if(t){if(this.wholeGroupSelected(t)){this.$emit("remove",t[this.groupValues],this.id);const n=this.internalValue.filter(r=>t[this.groupValues].indexOf(r)===-1);this.$emit("update:modelValue",n)}else{let n=t[this.groupValues].filter(r=>!(this.isOptionDisabled(r)||this.isSelected(r)));this.max&&n.splice(this.max-this.internalValue.length),this.$emit("select",n,this.id),this.$emit("update:modelValue",this.internalValue.concat(n))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(e){return e[this.groupValues].every(t=>this.isSelected(t)||this.isOptionDisabled(t))},wholeGroupDisabled(e){return e[this.groupValues].every(this.isOptionDisabled)},removeElement(e,t=!0){if(this.disabled||e.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const n=typeof e=="object"?this.valueKeys.indexOf(e[this.trackBy]):this.valueKeys.indexOf(e);if(this.multiple){const r=this.internalValue.slice(0,n).concat(this.internalValue.slice(n+1));this.$emit("update:modelValue",r)}else this.$emit("update:modelValue",null);this.$emit("remove",e,this.id),this.closeOnSelect&&t&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?this.$refs.search!==null&&typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const e=this.$el.getBoundingClientRect().top,t=window.innerHeight-this.$el.getBoundingClientRect().bottom;t>this.maxHeight||t>e||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(t-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(e-40,this.maxHeight))}}},cI={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(e,t){return{"multiselect__option--highlight":e===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(t)}},groupHighlight(e,t){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":t.$isLabel}];const n=this.options.find(r=>r[this.groupLabel]===t.$groupLabel);return n&&!this.wholeGroupDisabled(n)?["multiselect__option--group",{"multiselect__option--highlight":e===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(n)}]:"multiselect__option--disabled"},addPointerElement({key:e}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],e),this.pointerReset()},pointerForward(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(e){this.pointer=e,this.pointerDirty=!0}}},Hg={name:"vue-multiselect",mixins:[lI,cI],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:e=>`and ${e} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)}}};const uI={ref:"tags",class:"multiselect__tags"},fI={class:"multiselect__tags-wrap"},dI={class:"multiselect__spinner"},hI={key:0},vI={class:"multiselect__option"},pI={class:"multiselect__option"},_I=l.createTextVNode("No elements found. Consider changing the search query."),mI={class:"multiselect__option"},gI=l.createTextVNode("List is empty.");function yI(e,t,n,r,i,a){return l.openBlock(),l.createBlock("div",{tabindex:e.searchable?-1:n.tabindex,class:[{"multiselect--active":e.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":a.isAbove,"multiselect--has-options-group":a.hasOptionGroup},"multiselect"],onFocus:t[14]||(t[14]=o=>e.activate()),onBlur:t[15]||(t[15]=o=>e.searchable?!1:e.deactivate()),onKeydown:[t[16]||(t[16]=l.withKeys(l.withModifiers(o=>e.pointerForward(),["self","prevent"]),["down"])),t[17]||(t[17]=l.withKeys(l.withModifiers(o=>e.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:t[18]||(t[18]=l.withKeys(l.withModifiers(o=>e.addPointerElement(o),["stop","self"]),["enter","tab"])),onKeyup:t[19]||(t[19]=l.withKeys(o=>e.deactivate(),["esc"])),role:"combobox","aria-owns":"listbox-"+e.id},[l.renderSlot(e.$slots,"caret",{toggle:e.toggle},()=>[l.createVNode("div",{onMousedown:t[1]||(t[1]=l.withModifiers(o=>e.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),l.renderSlot(e.$slots,"clear",{search:e.search}),l.createVNode("div",uI,[l.renderSlot(e.$slots,"selection",{search:e.search,remove:e.removeElement,values:a.visibleValues,isOpen:e.isOpen},()=>[l.withDirectives(l.createVNode("div",fI,[(l.openBlock(!0),l.createBlock(l.Fragment,null,l.renderList(a.visibleValues,(o,s)=>l.renderSlot(e.$slots,"tag",{option:o,search:e.search,remove:e.removeElement},()=>[(l.openBlock(),l.createBlock("span",{class:"multiselect__tag",key:s},[l.createVNode("span",{textContent:l.toDisplayString(e.getOptionLabel(o))},null,8,["textContent"]),l.createVNode("i",{tabindex:"1",onKeypress:l.withKeys(l.withModifiers(c=>e.removeElement(o),["prevent"]),["enter"]),onMousedown:l.withModifiers(c=>e.removeElement(o),["prevent"]),class:"multiselect__tag-icon"},null,40,["onKeypress","onMousedown"])]))])),256))],512),[[l.vShow,a.visibleValues.length>0]]),e.internalValue&&e.internalValue.length>n.limit?l.renderSlot(e.$slots,"limit",{key:0},()=>[l.createVNode("strong",{class:"multiselect__strong",textContent:l.toDisplayString(n.limitText(e.internalValue.length-n.limit))},null,8,["textContent"])]):l.createCommentVNode("v-if",!0)]),l.createVNode(l.Transition,{name:"multiselect__loading"},{default:l.withCtx(()=>[l.renderSlot(e.$slots,"loading",{},()=>[l.withDirectives(l.createVNode("div",dI,null,512),[[l.vShow,n.loading]])])]),_:3}),e.searchable?(l.openBlock(),l.createBlock("input",{key:0,ref:"search",name:n.name,id:e.id,type:"text",autocomplete:"off",spellcheck:!1,placeholder:e.placeholder,style:a.inputStyle,value:e.search,disabled:n.disabled,tabindex:n.tabindex,onInput:t[2]||(t[2]=o=>e.updateSearch(o.target.value)),onFocus:t[3]||(t[3]=l.withModifiers(o=>e.activate(),["prevent"])),onBlur:t[4]||(t[4]=l.withModifiers(o=>e.deactivate(),["prevent"])),onKeyup:t[5]||(t[5]=l.withKeys(o=>e.deactivate(),["esc"])),onKeydown:[t[6]||(t[6]=l.withKeys(l.withModifiers(o=>e.pointerForward(),["prevent"]),["down"])),t[7]||(t[7]=l.withKeys(l.withModifiers(o=>e.pointerBackward(),["prevent"]),["up"])),t[9]||(t[9]=l.withKeys(l.withModifiers(o=>e.removeLastElement(),["stop"]),["delete"]))],onKeypress:t[8]||(t[8]=l.withKeys(l.withModifiers(o=>e.addPointerElement(o),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+e.id},null,44,["name","id","placeholder","value","disabled","tabindex","aria-controls"])):l.createCommentVNode("v-if",!0),a.isSingleLabelVisible?(l.openBlock(),l.createBlock("span",{key:1,class:"multiselect__single",onMousedown:t[10]||(t[10]=l.withModifiers((...o)=>e.toggle&&e.toggle(...o),["prevent"]))},[l.renderSlot(e.$slots,"singleLabel",{option:a.singleValue},()=>[l.createTextVNode(l.toDisplayString(e.currentOptionLabel),1)])],32)):l.createCommentVNode("v-if",!0),a.isPlaceholderVisible?(l.openBlock(),l.createBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:t[11]||(t[11]=l.withModifiers((...o)=>e.toggle&&e.toggle(...o),["prevent"]))},[l.renderSlot(e.$slots,"placeholder",{},()=>[l.createTextVNode(l.toDisplayString(e.placeholder),1)])],32)):l.createCommentVNode("v-if",!0)],512),l.createVNode(l.Transition,{name:"multiselect"},{default:l.withCtx(()=>[l.withDirectives(l.createVNode("div",{class:"multiselect__content-wrapper",onFocus:t[12]||(t[12]=(...o)=>e.activate&&e.activate(...o)),tabindex:"-1",onMousedown:t[13]||(t[13]=l.withModifiers(()=>{},["prevent"])),style:{maxHeight:e.optimizedHeight+"px"},ref:"list"},[l.createVNode("ul",{class:"multiselect__content",style:a.contentStyle,role:"listbox",id:"listbox-"+e.id},[l.renderSlot(e.$slots,"beforeList"),e.multiple&&e.max===e.internalValue.length?(l.openBlock(),l.createBlock("li",hI,[l.createVNode("span",vI,[l.renderSlot(e.$slots,"maxElements",{},()=>[l.createTextVNode("Maximum of "+l.toDisplayString(e.max)+" options selected. First remove a selected option to select another.",1)])])])):l.createCommentVNode("v-if",!0),!e.max||e.internalValue.length<e.max?(l.openBlock(!0),l.createBlock(l.Fragment,{key:1},l.renderList(e.filteredOptions,(o,s)=>(l.openBlock(),l.createBlock("li",{class:"multiselect__element",key:s,id:e.id+"-"+s,role:o&&(o.$isLabel||o.$isDisabled)?null:"option"},[o&&(o.$isLabel||o.$isDisabled)?l.createCommentVNode("v-if",!0):(l.openBlock(),l.createBlock("span",{key:0,class:[e.optionHighlight(s,o),"multiselect__option"],onClick:l.withModifiers(c=>e.select(o),["stop"]),onMouseenter:l.withModifiers(c=>e.pointerSet(s),["self"]),"data-select":o&&o.isTag?e.tagPlaceholder:a.selectLabelText,"data-selected":a.selectedLabelText,"data-deselect":a.deselectLabelText},[l.renderSlot(e.$slots,"option",{option:o,search:e.search,index:s},()=>[l.createVNode("span",null,l.toDisplayString(e.getOptionLabel(o)),1)])],42,["onClick","onMouseenter","data-select","data-selected","data-deselect"])),o&&(o.$isLabel||o.$isDisabled)?(l.openBlock(),l.createBlock("span",{key:1,"data-select":e.groupSelect&&a.selectGroupLabelText,"data-deselect":e.groupSelect&&a.deselectGroupLabelText,class:[e.groupHighlight(s,o),"multiselect__option"],onMouseenter:l.withModifiers(c=>e.groupSelect&&e.pointerSet(s),["self"]),onMousedown:l.withModifiers(c=>e.selectGroup(o),["prevent"])},[l.renderSlot(e.$slots,"option",{option:o,search:e.search,index:s},()=>[l.createVNode("span",null,l.toDisplayString(e.getOptionLabel(o)),1)])],42,["data-select","data-deselect","onMouseenter","onMousedown"])):l.createCommentVNode("v-if",!0)],8,["id","role"]))),128)):l.createCommentVNode("v-if",!0),l.withDirectives(l.createVNode("li",null,[l.createVNode("span",pI,[l.renderSlot(e.$slots,"noResult",{search:e.search},()=>[_I])])],512),[[l.vShow,n.showNoResults&&e.filteredOptions.length===0&&e.search&&!n.loading]]),l.withDirectives(l.createVNode("li",null,[l.createVNode("span",mI,[l.renderSlot(e.$slots,"noOptions",{},()=>[gI])])],512),[[l.vShow,n.showNoOptions&&(e.options.length===0||a.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!n.loading]]),l.renderSlot(e.$slots,"afterList")],12,["id"])],36),[[l.vShow,e.isOpen]])]),_:3})],42,["tabindex","aria-owns"])}Hg.render=yI;const EI=l.defineComponent({__name:"CapeFilterFieldEnumOneOfMultiselect",props:{filterId:{}},setup(e){const t=e,r=ft().byId(t.filterId),i=r.field;return(a,o)=>(l.openBlock(),l.createBlock(l.unref(Hg),{id:"filter-multiselect-"+l.unref(i).id,modelValue:l.unref(r).oneOfTerms,"onUpdate:modelValue":o[0]||(o[0]=s=>l.unref(r).oneOfTerms=s),"clear-on-select":!1,"close-on-select":!0,multiple:!0,options:l.unref(i).values,"preserve-search":!0,placeholder:"Select (1 or more)"},null,8,["id","modelValue","options"]))}}),SI=["aria-label"],TI=l.createElementVNode("option",{key:"",value:""},null,-1),NI=["value"],DI=l.defineComponent({__name:"CapeFilterFieldEnumIsSelect",props:{filterId:{}},setup(e){const t=e,r=ft().byId(t.filterId),i=r.field;return(a,o)=>l.withDirectives((l.openBlock(),l.createElementBlock("select",{class:"cape-filter-field-enum-is-select","onUpdate:modelValue":o[0]||(o[0]=s=>l.unref(r).isTerm=s),"aria-label":"Select "+l.unref(i).label+" value."},[TI,(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(i).values,s=>(l.openBlock(),l.createElementBlock("option",{key:s,value:s},l.toDisplayString(s),9,NI))),128))],8,SI)),[[l.vModelSelect,l.unref(r).isTerm]])}}),wI={class:"cape-filter-field-enum-is-radio"},bI={class:"form-check form-check-inline"},kI=["id"],CI=["for"],OI=[l.createElementVNode("em",null,"any",-1)],II=["id","value"],RI=["for"],PI=l.defineComponent({__name:"CapeFilterFieldEnumIsRadio",props:{filterId:{}},setup(e){const t=e,r=ft().byId(t.filterId),i=r.field;return(a,o)=>(l.openBlock(),l.createElementBlock("ul",wI,[l.createElementVNode("li",bI,[l.withDirectives(l.createElementVNode("input",{id:"cape-filter-field-input-"+l.unref(r).id+"-","onUpdate:modelValue":o[0]||(o[0]=s=>l.unref(r).isTerm=s),type:"radio",value:""},null,8,kI),[[l.vModelRadio,l.unref(r).isTerm]]),l.createElementVNode("label",{for:"cape-filter-field-input-"+l.unref(r).id+"-"},OI,8,CI)]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(i).values,s=>(l.openBlock(),l.createElementBlock("li",{key:s},[l.withDirectives(l.createElementVNode("input",{id:"cape-filter-field-input-"+l.unref(r).id+"-"+s,"onUpdate:modelValue":o[1]||(o[1]=c=>l.unref(r).isTerm=c),value:s,type:"radio"},null,8,II),[[l.vModelRadio,l.unref(r).isTerm]]),l.createElementVNode("label",{for:"cape-filter-field-input-"+l.unref(r).id+"-"+s},l.toDisplayString(s),9,RI)]))),128))]))}}),AI={class:"cape-filter-label"},MI=["for"],YI={class:"cape-filter-mode"},xI=[l.createElementVNode("option",{value:"oneOf"},"is one of",-1),l.createElementVNode("option",{value:"is"},"is",-1),l.createElementVNode("option",{value:"set"},"is present",-1),l.createElementVNode("option",{value:"notSet"},"is not present",-1)],LI={class:"cape-filter-term"},VI=l.defineComponent({__name:"CapeFilterFieldEnum",props:{filterId:{}},setup(e){const t=e,r=ft().byId(t.filterId),i=r.field;return(a,o)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",AI,[l.createElementVNode("label",{for:"cape-filter-field-input-"+l.unref(r).id,"data-test":"filter-label"},l.toDisplayString(l.unref(r).field.label),9,MI)]),l.createElementVNode("div",YI,[l.unref(r).field.changeFilterMode?l.withDirectives((l.openBlock(),l.createElementBlock("select",{key:0,"onUpdate:modelValue":o[0]||(o[0]=s=>l.unref(r).mode=s),"data-test":"filter-mode-select","aria-label":"Filter mode"},xI,512)),[[l.vModelSelect,l.unref(r).mode]]):l.createCommentVNode("",!0)]),l.createElementVNode("div",LI,[l.unref(r).mode==="oneOf"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.unref(i).filterInputStyleOnOneOf==="checkbox"?(l.openBlock(),l.createBlock(rI,{key:0,"filter-id":a.filterId},null,8,["filter-id"])):(l.openBlock(),l.createBlock(EI,{key:1,"filter-id":a.filterId},null,8,["filter-id"]))],64)):l.createCommentVNode("",!0),l.unref(r).mode==="is"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.unref(i).filterInputStyleOnIs==="select"?(l.openBlock(),l.createBlock(DI,{key:0,"filter-id":a.filterId},null,8,["filter-id"])):(l.openBlock(),l.createBlock(PI,{key:1,"filter-id":a.filterId},null,8,["filter-id"]))],64)):l.createCommentVNode("",!0)])],64))}}),FI={class:"cape-filter-label"},$I=["for"],UI={class:"cape-filter-mode"},BI=[l.createElementVNode("option",{value:"between"},"is between",-1),l.createElementVNode("option",{value:"is"},"is",-1),l.createElementVNode("option",{value:"set"},"is present",-1),l.createElementVNode("option",{value:"notSet"},"is not present",-1)],HI={class:"cape-filter-term"},GI=["id","placeholder","min","max","step"],WI=l.createElementVNode("span",{class:"cape-filter-field-integer-term-term-and"},"and",-1),jI=["id","placeholder","min","max","step"],zI=["id","placeholder","min","max","step"],KI=l.defineComponent({__name:"CapeFilterFieldInteger",props:{filterId:{}},setup(e){const t=e,n=ft(),r=l.computed(()=>n.byId(t.filterId)),i=l.computed(()=>r.value.field);return(a,o)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",FI,[l.createElementVNode("label",{for:"cape-filter-field-input-"+r.value.id,"data-test":"filter-label"},l.toDisplayString(r.value.field.label),9,$I)]),l.createElementVNode("div",UI,[r.value.field.changeFilterMode?l.withDirectives((l.openBlock(),l.createElementBlock("select",{key:0,"onUpdate:modelValue":o[0]||(o[0]=s=>r.value.mode=s),"data-test":"filter-mode-select","aria-label":"Filter mode"},BI,512)),[[l.vModelSelect,r.value.mode]]):l.createCommentVNode("",!0)]),l.createElementVNode("div",HI,[r.value.mode==="between"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.withDirectives(l.createElementVNode("input",{id:"cape-filter-field-input-lower-bound-"+r.value.id,"onUpdate:modelValue":o[1]||(o[1]=s=>r.value.lowerBoundTerm=s),placeholder:Array.isArray(i.value.placeholderBetween)?i.value.placeholderBetween[0]:"",type:"number",min:i.value.min,max:i.value.max,step:i.value.step,class:"cape-filter-field-integer-term-lower-bound","data-test":"filter-term-input-lower-bound"},null,8,GI),[[l.vModelText,r.value.lowerBoundTerm]]),WI,l.withDirectives(l.createElementVNode("input",{id:"cape-filter-field-input-upper-bound-"+r.value.id,"onUpdate:modelValue":o[2]||(o[2]=s=>r.value.upperBoundTerm=s),placeholder:Array.isArray(i.value.placeholderBetween)?i.value.placeholderBetween[1]:"",type:"number",min:i.value.min,max:i.value.max,step:i.value.step,class:"cape-filter-field-integer-term-upper-bound","data-test":"filter-term-input-upper-bound"},null,8,jI),[[l.vModelText,r.value.upperBoundTerm]])],64)):l.createCommentVNode("",!0),r.value.mode==="is"?l.withDirectives((l.openBlock(),l.createElementBlock("input",{key:1,id:"cape-filter-field-input-"+r.value.id,"onUpdate:modelValue":o[3]||(o[3]=s=>r.value.isTerm=s),placeholder:i.value.placeholderIs,type:"number",min:i.value.min,max:i.value.max,step:i.value.step,class:"cape-filter-field-integer-term","data-test":"filter-term-input"},null,8,zI)),[[l.vModelText,r.value.isTerm]]):l.createCommentVNode("",!0)])],64))}}),qI={class:"cape-filter-label"},XI=["for"],JI={class:"cape-filter-mode"},QI=[l.createElementVNode("option",{value:"between"},"is between",-1),l.createElementVNode("option",{value:"is"},"is",-1),l.createElementVNode("option",{value:"set"},"is present",-1),l.createElementVNode("option",{value:"notSet"},"is not present",-1)],ZI={class:"cape-filter-term"},eR=["id","placeholder"],tR=l.createElementVNode("span",{class:"cape-filter-field-date-term-term-and"},"and",-1),nR=["id","placeholder"],rR=["id","placeholder"],iR=l.defineComponent({__name:"CapeFilterFieldDate",props:{filterId:{}},setup(e){const t=e,n=ft(),r=l.computed(()=>n.byId(t.filterId)),i=l.computed(()=>r.value.field);return(a,o)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",qI,[l.createElementVNode("label",{for:"cape-filter-field-input-"+r.value.id,"data-test":"filter-label"},l.toDisplayString(r.value.field.label),9,XI)]),l.createElementVNode("div",JI,[r.value.field.changeFilterMode?l.withDirectives((l.openBlock(),l.createElementBlock("select",{key:0,"onUpdate:modelValue":o[0]||(o[0]=s=>r.value.mode=s),"data-test":"filter-mode-select","aria-label":"Filter mode"},QI,512)),[[l.vModelSelect,r.value.mode]]):l.createCommentVNode("",!0)]),l.createElementVNode("div",ZI,[r.value.mode==="between"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.withDirectives(l.createElementVNode("input",{id:"cape-filter-field-input-lower-bound-"+r.value.id,"onUpdate:modelValue":o[1]||(o[1]=s=>r.value.lowerBoundTerm=s),placeholder:Array.isArray(i.value.placeholderBetween)?i.value.placeholderBetween[0]:"",class:"cape-filter-field-date-term-term-lower-bound","data-test":"filter-term-input-lower-bound"},null,8,eR),[[l.vModelText,r.value.lowerBoundTerm]]),tR,l.withDirectives(l.createElementVNode("input",{id:"cape-filter-field-input-upper-bound-"+r.value.id,"onUpdate:modelValue":o[2]||(o[2]=s=>r.value.upperBoundTerm=s),placeholder:Array.isArray(i.value.placeholderBetween)?i.value.placeholderBetween[1]:"",class:"cape-filter-field-date-term-term-upper-bound","data-test":"filter-term-input-upper-bound"},null,8,nR),[[l.vModelText,r.value.upperBoundTerm]])],64)):l.createCommentVNode("",!0),r.value.mode==="is"?l.withDirectives((l.openBlock(),l.createElementBlock("input",{key:1,id:"cape-filter-field-input-"+r.value.id,type:"date","onUpdate:modelValue":o[3]||(o[3]=s=>r.value.isTerm=s),placeholder:i.value.placeholderIs,class:"cape-filter-field-date-term-term","data-test":"filter-term-input"},null,8,rR)),[[l.vModelText,r.value.isTerm]]):l.createCommentVNode("",!0)])],64))}}),aR=l.defineComponent({name:"CapeAboutPage",components:{CapeRecordCount:Lm},template:"#templateCapeAbout",computed:{metadata(){return hr().metadata}}});function oR(e,t,n){const r=new Blob([new Uint8Array([239,187,191]),t],{type:n});if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveBlob(r,e);else{const i=window.document.createElement("a");i.href=window.URL.createObjectURL(r),i.download=e,document.body.appendChild(i),i.click(),document.body.removeChild(i)}}function sR(){const e=[[]],t=ja(),n=Ss();return t.all.forEach(r=>e[0].push(r.label)),n.all.forEach(r=>{e.push(t.all.map(i=>{const a=r[i.id].value??"";return i.isMultiple&&Array.isArray(a)?a.join("; "):`${a}`}))}),e}function lR(e){return e.map(n=>'"'+n.map(i=>{let a="";return i!=null&&(a=i.toString()),a.replace(/"/g,'""').replace(/\r\n/g,`
|
|
46
46
|
`)}).join('","')+`"
|
|
47
|
-
`).join("")}const zp=s.defineComponent({__name:"CapeDownloadCsvButton",setup(e){function t(){const n=Hp(),r=Gp(n);jp("download.csv",r,"text/csv;charset=utf-8")}return(n,r)=>(s.openBlock(),s.createElementBlock("a",{onClick:t,class:"cursor-pointer cape-button"},"Download CSV"))}}),Kp={},qp={href:"/site-data.json",class:"cape-button"};function Zp(e,t){return s.openBlock(),s.createElementBlock("a",qp,"Download JSON")}const Jp=Xs(Kp,[["render",Zp]]),Qp={class:"cape-fields-table"},Xp=s.createElementVNode("thead",null,[s.createElementVNode("tr",null,[s.createElementVNode("th",{scope:"col"},"Field id"),s.createElementVNode("th",{scope:"col"},"Field name"),s.createElementVNode("th",{scope:"col"},"Field type"),s.createElementVNode("th",{scope:"col"},"Description")])],-1),em={key:0},tm=s.defineComponent({__name:"CapeFieldsTable",setup(e){const t=ft(),n=s.computed(()=>t.all);return(r,i)=>(s.openBlock(),s.createElementBlock("table",Qp,[Xp,s.createElementVNode("tbody",null,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.value,o=>(s.openBlock(),s.createElementBlock("tr",{key:o.id},[s.createElementVNode("td",null,s.toDisplayString(o.id),1),s.createElementVNode("td",null,s.toDisplayString(o.label),1),s.createElementVNode("td",null,[s.createTextVNode(s.toDisplayString(o.type)+" ",1),o.isMultiple?(s.openBlock(),s.createElementBlock("span",em," list")):s.createCommentVNode("",!0)]),s.createElementVNode("td",null,s.toDisplayString(o.description),1)]))),128))])]))}}),so={install:function(e,t){e.use(Qa()),this.addCapeComponents(e,t),t.additionalComponents!==void 0&&this.addAdditionalComponents(e,t.additionalComponents);const n=Ve();n.setOptions(t),s.toRaw(n.pages).forEach(r=>{js.addRoute({path:r.path,component:e.component(r.component)})}),e.use(js)},addAdditionalComponents:function(e,t){Object.keys(t).forEach(n=>{e.component(n,t[n])})},addCapeComponents:function(e,t){e.component("CapeRoot",Zs),e.component("CapeAboutPage",Wp),e.component("CapeAdvancedSearchToggle",Rl),e.component("CapeFieldsTable",tm),e.component("CapeFilters",xl),e.component("CapeFormResetButton",Il),e.component("CapeHeader",Qs),e.component("CapeHomePage",Ls),e.component("CapeHomepageLayout",Ys),e.component("CapeLoadError",Gs),e.component("CapeLoading",ei),e.component("CapeNavigation",Hs),e.component("CapeNonProdWarning",Gl),e.component("CapeRecordCount",Js),e.component("CapeRecordCard",Us),e.component("CapeRecordPage",Ws),e.component("CapeResults",hc),e.component("CapeSummaryCard",ti),e.component("CapeLabelledValue",vh),e.component("CapeValue",eo),e.component("CapeSingleValue",Rr),e.component("CapeFilterFieldText",$h),e.component("CapeFilterFieldEnum",bp),e.component("CapeFilterFreeText",Bh),e.component("CapeFilterFieldInteger",$p),e.component("CapeFilterFieldDate",Up),e.component("CapeSortOrder",ni),e.component("CapeResultsControls",Xn),e.component("CapeDownloadJsonButton",Jp),e.component("CapeDownloadCsvButton",zp)}},nm={template:"#templateCapeFooter"},rm=s.defineComponent({__name:"App",setup(e){return(t,n)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createVNode(Qs),(s.openBlock(),s.createBlock(s.Suspense,null,{default:s.withCtx(()=>[s.createVNode(Zs)]),fallback:s.withCtx(()=>[s.createVNode(ei)]),_:1})),s.createVNode(nm)],64))}}),sm=e=>{const t=s.createApp(rm);return t.use(so,e),t};Z.CapeLogger=Rt,Z.CapePlugin=so,Z.Filter=Jn,Z.createCapeApp=sm,Z.useDatasetStore=Pt,Z.useFieldStore=ft,Z.useFilterStore=K,Z.usePropertyStore=Ve,Z.useSearchResultsStore=Ge,Object.defineProperty(Z,Symbol.toStringTag,{value:"Module"})});
|
|
47
|
+
`).join("")}const cR=l.defineComponent({__name:"CapeDownloadCsvButton",setup(e){function t(){const n=sR(),r=lR(n);oR("download.csv",r,"text/csv;charset=utf-8")}return(n,r)=>(l.openBlock(),l.createElementBlock("a",{onClick:t,class:"cursor-pointer cape-button"},"Download CSV"))}}),uR={},fR={href:"/site-data.json",class:"cape-button"};function dR(e,t){return l.openBlock(),l.createElementBlock("a",fR,"Download JSON")}const hR=Fm(uR,[["render",dR]]),vR={class:"cape-fields-table"},pR=l.createElementVNode("thead",null,[l.createElementVNode("tr",null,[l.createElementVNode("th",{scope:"col"},"Field id"),l.createElementVNode("th",{scope:"col"},"Field name"),l.createElementVNode("th",{scope:"col"},"Field type"),l.createElementVNode("th",{scope:"col"},"Description")])],-1),_R={key:0},mR=l.defineComponent({__name:"CapeFieldsTable",setup(e){const t=ja(),n=l.computed(()=>t.all);return(r,i)=>(l.openBlock(),l.createElementBlock("table",vR,[pR,l.createElementVNode("tbody",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.value,a=>(l.openBlock(),l.createElementBlock("tr",{key:a.id},[l.createElementVNode("td",null,l.toDisplayString(a.id),1),l.createElementVNode("td",null,l.toDisplayString(a.label),1),l.createElementVNode("td",null,[l.createTextVNode(l.toDisplayString(a.type)+" ",1),a.isMultiple?(l.openBlock(),l.createElementBlock("span",_R," list")):l.createCommentVNode("",!0)]),l.createElementVNode("td",null,l.toDisplayString(a.description),1)]))),128))])]))}}),Gg={install:function(e,t){e.use(pD()),this.addCapeComponents(e,t),t.additionalComponents!==void 0&&this.addAdditionalComponents(e,t.additionalComponents);const n=hr();n.setOptions(t),l.toRaw(n.pages).forEach(r=>{Im.addRoute({path:r.path,component:e.component(r.component)})}),e.use(Im)},addAdditionalComponents:function(e,t){Object.keys(t).forEach(n=>{e.component(n,t[n])})},addCapeComponents:function(e,t){e.component("CapeRoot",xm),e.component("CapeAboutPage",aR),e.component("CapeAdvancedSearchToggle",XD),e.component("CapeFieldsTable",mR),e.component("CapeFilters",QD),e.component("CapeFormResetButton",ZD),e.component("CapeHeader",Vm),e.component("CapeHomePage",km),e.component("CapeHomepageLayout",bm),e.component("CapeLoadError",Pm),e.component("CapeLoading",$m),e.component("CapeNavigation",Rm),e.component("CapeNonProdWarning",cw),e.component("CapeRecordCount",Lm),e.component("CapeRecordCard",Cm),e.component("CapeRecordPage",Om),e.component("CapeResults",Iw),e.component("CapeSummaryCard",Um),e.component("CapeLabelledValue",$O),e.component("CapeValue",$g),e.component("CapeSingleValue",Yd),e.component("CapeFilterFieldText",KO),e.component("CapeFilterFieldEnum",VI),e.component("CapeFilterFreeText",ZO),e.component("CapeFilterFieldInteger",KI),e.component("CapeFilterFieldDate",iR),e.component("CapeSortOrder",Bm),e.component("CapeResultsControls",td),e.component("CapeDownloadJsonButton",hR),e.component("CapeDownloadCsvButton",cR)}},gR={template:"#templateCapeFooter"},yR=l.defineComponent({__name:"App",setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createVNode(Vm),(l.openBlock(),l.createBlock(l.Suspense,null,{default:l.withCtx(()=>[l.createVNode(xm)]),fallback:l.withCtx(()=>[l.createVNode($m)]),_:1})),l.createVNode(gR)],64))}}),ER=e=>{const t=l.createApp(yR);return t.use(Gg,e),t};var zt=(e=>(e[e.Debug=3]="Debug",e[e.Info=2]="Info",e[e.Warn=1]="Warn",e[e.Error=0]="Error",e))(zt||{});class SR{constructor(t){this.loggingLevel=t}debug(t,n){this.loggingLevel<zt.Debug||console.debug(t,n)}info(t,n){this.loggingLevel<zt.Info||console.info(t,n??"")}warn(t,n){this.loggingLevel<zt.Warn||console.warn(t,n??"")}error(t,n){this.loggingLevel<zt.Error||console.error(t,n??"")}}const TR={install:function(e,t){const n=new SR(t.LoggingLevel);Li.getInstance().registerSink(n)}};/*! https://github.com/nevware21/ts-utils v0.11.3 */function Nr(e,t){return e||t}function Kt(e,t){return e[t]}var qt=void 0,Ft=null,Vd="",wc="function",Ms="object",Dr="prototype",Fd="__proto__",Hi="undefined",bc="constructor",$d="Symbol",NR="_polyfill",ro="length",kc="name",Ct="call",Cc="toString",In=Nr(Object),Ud=Kt(In,Dr),Wg=Nr(String),Gi=Kt(Wg,Dr),DR=Nr(Math),jg=Nr(Array),Oc=Kt(jg,Dr),wr=Kt(Oc,"slice");function bt(e,t){try{return{v:e.apply(this,t)}}catch(n){return{e:n}}}function wR(e,t){var n=bt(e);return n.e?t:n.v}var Bd;function Ic(e){return function(t){return typeof t===e}}function zg(e){var t="[object "+e+"]";return function(n){return!!(n&&bR(n)===t)}}function bR(e){return Ud[Cc].call(e)}function it(e){return typeof e===Hi||e===Hi}function W(e){return e===Ft||it(e)}function kR(e){return e===Ft||!Kg(e)}function Kg(e){return!!e||e!==qt}function CR(e){return!Bd&&(Bd=["string","number","boolean",Hi,"symbol","bigint"]),e!==Ms&&Bd.indexOf(e)!==-1}var Se=Ic("string"),we=Ic(wc);function Xt(e){return!e&&W(e)?!1:!!e&&typeof e===Ms}var Ae=Kt(jg,"isArray"),OR=zg("Date"),Ys=Ic("number"),qg=Ic("boolean"),Hd=zg("Error");function Wi(e){return!!(e&&e.then&&we(e.then))}function Rc(e){return!(!e||wR(function(){return!(e&&0+e)},!e))}var Gd=Kt(In,"getOwnPropertyDescriptor");function hn(e,t){return!!e&&Ud.hasOwnProperty[Ct](e,t)}var ti=Nr(Kt(In,"hasOwn"),IR);function IR(e,t){return hn(e,t)||!!Gd(e,t)}function Me(e,t,n){if(e&&Xt(e)){for(var r in e)if(ti(e,r)&&t[Ct](n||e,r,e[r])===-1)break}}var Pc={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"};function RR(e){var t={};if(t[Pc.c]=!0,t[Pc.e]=!0,e.l){t.get=function(){return e.l.v};var n=Gd(e.l,"v");n&&n.set&&(t.set=function(r){e.l.v=r})}return Me(e,function(r,i){t[Pc[r]]=it(i)?t[Pc[r]]:i}),t}var br=Kt(In,"defineProperty");function Be(e,t,n){return br(e,t,RR(n))}function Xg(e,t,n,r,i){var a={};return Me(e,function(o,s){Ac(a,o,t?s:o,i),Ac(a,s,n?s:o,i)}),r?r(a):a}function Ac(e,t,n,r){br(e,t,{value:n,enumerable:!0,writable:!!r})}var Jt=Nr(Wg),PR="[object Error]";function ae(e,t){var n=Vd,r=Ud[Cc][Ct](e);r===PR&&(e={stack:Jt(e.stack),message:Jt(e.message),name:Jt(e.name)});try{n=JSON.stringify(e,Ft,t?typeof t=="number"?t:4:qt),n=n&&n.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: ")||Jt(e)}catch(i){n=" - "+ae(i,t)}return r+": "+n}function on(e){throw new Error(e)}function Rn(e){throw new TypeError(e)}var Jg=Kt(In,"freeze");function AR(e){return e}function MR(e){return e[Fd]||Ft}var Wd=Kt(In,"assign"),kr=Kt(In,"keys");function io(e){return Jg&&Me(e,function(t,n){(Ae(n)||Xt(n))&&io(n)}),Cr(e)}var Cr=Nr(Jg,AR),jd=Nr(Kt(In,"getPrototypeOf"),MR);function YR(e){return Xg(e,1,0,Cr)}function xR(e){return Xg(e,0,0,Cr)}function LR(e){var t={};return Me(e,function(n,r){Ac(t,n,r[1]),Ac(t,r[0],r[1])}),Cr(t)}function VR(e){return LR(e)}var Qg=xR({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),Zg="__tsUtils$gblCfg",zd;function ey(){var e;return typeof globalThis!==Hi&&(e=globalThis),!e&&typeof self!==Hi&&(e=self),!e&&typeof window!==Hi&&(e=window),!e&&typeof global!==Hi&&(e=global),e}function ty(){if(!zd){var e=bt(ey).v||{};zd=e[Zg]=e[Zg]||{}}return zd}var ji=Mc;function Mc(e,t,n){var r=t&&t[e];return function(i){var a=i&&i[e]||r;if(a||n){var o=arguments;return(a||n).apply(i,a?wr[Ct](o,1):o)}Rn('"'+Jt(e)+'" not defined for '+ae(i))}}function FR(e){return function(t){return t[e]}}var $R=Kt(DR,"max"),ny=ji("slice",Gi),jn=ji("substring",Gi),ni=Mc("substr",Gi,UR);function UR(e,t,n){return W(e)&&Rn("Invalid "+ae(e)),n<0?Vd:(t=t||0,t<0&&(t=$R(t+e[ro],0)),it(n)?ny(e,t):ny(e,t,t+n))}function Kd(e,t){return jn(e,0,t)}var ry="_urid",qd;function BR(){if(!qd){var e=ty();qd=e.gblSym=e.gblSym||{k:{},s:{}}}return qd}var Yc;function Xd(e){var t={description:Jt(e),toString:function(){return $d+"("+e+")"}};return t[NR]=!0,t}function HR(e){var t=BR();if(!ti(t.k,e)){var n=Xd(e),r=kr(t.s).length;n[ry]=function(){return r+"_"+n[Cc]()},t.k[e]=n,t.s[n[ry]()]=Jt(e)}return t.k[e]}function GR(e){!Yc&&(Yc={});var t,n=Qg[e];return n&&(t=Yc[n]=Yc[n]||Xd($d+"."+n)),t}var mt;function ri(){mt=ty()}function WR(e){var t={};return!mt&&ri(),t.b=mt.lzy,br(t,"v",{configurable:!0,get:function(){var n=e();return mt.lzy||br(t,"v",{value:n}),t.b=mt.lzy,n}}),t}function vn(e){return br({toJSON:function(){return e}},"v",{value:e})}var iy="window",xs;function ao(e,t){var n;return function(){return!mt&&ri(),(!n||mt.lzy)&&(n=vn(bt(e,t).v)),n.v}}function pn(e){return!mt&&ri(),(!xs||e===!1||mt.lzy)&&(xs=vn(bt(ey).v||Ft)),xs.v}function ct(e,t){var n=!xs||t===!1?pn(t):xs.v;return n&&n[e]?n[e]:e===iy?Qt():Ft}function ay(){return!!Ot()}var Ot=ao(ct,["document"]);function xc(){return!!Qt()}var Qt=ao(ct,[iy]);function jR(){return!!zn()}var zn=ao(ct,["navigator"]);function zR(){return!!oy()}var oy=ao(ct,["history"]),KR=ao(function(){return!!bt(function(){return process&&(process.versions||{}).node}).v}),sy=ao(function(){return!!bt(function(){return self&&self instanceof WorkerGlobalScope}).v}),oo,Jd;function Lc(){return oo=vn(bt(ct,[$d]).v),oo}function qR(e){var t=(mt.lzy?0:oo)||Lc();return t.v?t.v[e]:qt}function XR(){return!!JR()}function JR(){return!mt&&ri(),((mt.lzy?0:oo)||Lc()).v}function Qd(e,t){var n=Qg[e];!mt&&ri();var r=(mt.lzy?0:oo)||Lc();return r.v?r.v[n||e]:t?qt:GR(e)}function Ls(e,t){!mt&&ri();var n=(mt.lzy?0:oo)||Lc();return n.v?n.v(e):t?Ft:Xd(e)}function Zd(e){return!mt&&ri(),Jd=(mt.lzy?0:Jd)||vn(bt(qR,["for"]).v),(Jd.v||HR)(e)}function eh(e){return!!e&&we(e.next)}function ly(e){return!kR(e)&&we(e[Qd(3)])}var Vc;function th(e,t,n){if(e&&(eh(e)||(!Vc&&(Vc=vn(Qd(3))),e=e[Vc.v]?e[Vc.v]():null),eh(e))){var r=qt,i=qt;try{for(var a=0;!(i=e.next()).done&&t[Ct](n||e,i.value,a,e)!==-1;)a++}catch(o){r={e:o},e.throw&&(i=Ft,e.throw(r))}finally{try{i&&!i.done&&e.return&&e.return(i)}finally{if(r)throw r.e}}}}function so(e,t,n){return e.apply(t,n)}function lo(e,t){return!it(t)&&e&&(Ae(t)?so(e.push,e,t):eh(t)||ly(t)?th(t,function(n){e.push(n)}):e.push(t)),e}function ie(e,t,n){if(e)for(var r=e[ro]>>>0,i=0;i<r&&!(i in e&&t[Ct](n||e,e[i],i,e)===-1);i++);}var Yt=ji("indexOf",Oc),Vs=ji("map",Oc);function Fc(e,t,n){return(e&&e.slice||wr).apply(e,wr[Ct](arguments,1))}var QR=ji("reduce",Oc),ii=Nr(Kt(In,"create"),ZR);function ZR(e){if(!e)return{};var t=typeof e;t!==Ms&&t!==wc&&Rn("Prototype must be an Object or function: "+ae(e));function n(){}return n[Dr]=e,new n}var nh;function cy(e,t){var n=In.setPrototypeOf||function(r,i){var a;!nh&&(nh=vn((a={},a[Fd]=[],a instanceof Array))),nh.v?r[Fd]=i:Me(i,function(o,s){return r[o]=s})};return n(e,t)}function e1(e,t,n){bt(Be,[t,kc,{v:e,c:!0,e:!1}]),t=cy(t,n);function r(){this[bc]=t,bt(Be,[this,kc,{v:e,c:!0,e:!1}])}return t[Dr]=n===Ft?ii(n):(r[Dr]=n[Dr],new r),t}function uy(e,t){t&&(e[kc]=t)}function fy(e,t,n){var r=n||Error,i=r[Dr][kc],a=Error.captureStackTrace;return e1(e,function(){var o=this,s=arguments;try{bt(uy,[r,e]);var c=so(r,o,wr[Ct](s))||o;if(c!==o){var u=jd(o);u!==jd(c)&&cy(c,u)}return a&&a(c,o[bc]),t&&t(c,s),c}finally{bt(uy,[r,i])}},r)}var rh;function t1(e){throw rh||(rh=fy("UnsupportedError")),new rh(e)}function Kn(){return(Date.now||n1)()}function n1(){return new Date().getTime()}function r1(e){return function(n){return W(n)&&Rn("strTrim called ["+ae(n)+"]"),n&&n.replace&&(n=n.replace(e,Vd)),n}}var i1=r1(/^\s+|(?=\s)\s+$/g),gt=Mc("trim",Gi,i1),ih,ah,oh;function $t(e){if(!e||typeof e!==Ms)return!1;oh||(oh=xc()?Qt():!0);var t=!1;if(e!==oh){ah||(ih=Function[Dr][Cc],ah=ih[Ct](In));try{var n=jd(e);t=!n,t||(hn(n,bc)&&(n=n[bc]),t=n&&typeof n===wc&&ih[Ct](n)===ah)}catch{}}return t}function a1(e){return e.value&&vy(e),!0}var dy=[c1,vy,f1,u1];function o1(e,t,n,r){var i;return ie(e,function(a){if(a.k===t)return i=a,-1}),i||(i={k:t,v:t},e.push(i),r(i)),i.v}function sh(e,t,n,r){var i=n.handler,a=n.path?r?n.path.concat(r):n.path:[],o={handler:n.handler,src:n.src,path:a},s=typeof t,c=!1,u=!1;t&&s===Ms?c=$t(t):u=t===Ft||CR(s);var f={type:s,isPrim:u,isPlain:c,value:t,result:t,path:a,origin:n.src,copy:function(d,v){return sh(e,d,v?o:n,v)},copyTo:function(d,v){return hy(e,d,v,o)}};return f.isPrim?i&&i[Ct](n,f)?f.result:t:o1(e,t,a,function(d){Be(f,"result",{g:function(){return d.v},s:function(p){d.v=p}});for(var v=0,h=i;!(h||(v<dy.length?dy[v++]:a1))[Ct](n,f);)h=Ft})}function hy(e,t,n,r){if(!W(n))for(var i in n)t[i]=sh(e,n[i],r,i);return t}function s1(e,t,n){var r={handler:n,src:t,path:[]};return hy([],e,t,r)}function l1(e,t){var n={handler:t,src:e};return sh([],e,n)}function c1(e){var t=e.value;if(Ae(t)){var n=e.result=[];return n.length=t.length,e.copyTo(n,t),!0}return!1}function u1(e){var t=e.value;return OR(t)?(e.result=new Date(t.getTime()),!0):!1}function f1(e){return e.type===wc}function vy(e){var t=e.value;if(t&&e.isPlain){var n=e.result={};return e.copyTo(n,t),!0}return!1}function py(e,t){return ie(t,function(n){s1(e,n)}),e}function _y(e,t,n,r,i,a,o){return py(l1(e)||{},wr[Ct](arguments))}function d1(e,t,n,r,i,a,o){return py(e||{},wr[Ct](arguments))}var h1=FR(ro),lh;function Or(){return!mt&&ri(),(!lh||mt.lzy)&&(lh=vn(bt(ct,["performance"]).v)),lh.v}var my=ji("split",Gi);function gy(e,t,n){if(e&&t){var r=my(t,"."),i=r.pop();ie(r,function(a){W(e[a])&&(e[a]={}),e=e[a]}),e[i]=n}}var yy=Mc("endsWith",Gi,v1);function v1(e,t,n){Se(e)||Rn("'"+ae(e)+"' is not a string");var r=Se(t)?t:Jt(t),i=!it(n)&&n<e[ro]?n:e[ro];return jn(e,i-r[ro],i)===r}var Zt=ji("indexOf",Gi),ch="ref",uh="unref",fh="hasRef",p1="enabled";function _1(e,t,n){var r=!0,i=e?t(Ft):Ft,a;function o(){return r=!1,i&&i[uh]&&i[uh](),a}function s(){i&&n(i),i=Ft}function c(){return i=t(i),r||o(),a}function u(f){!f&&i&&s(),f&&!i&&c()}return a={cancel:s,refresh:c},a[fh]=function(){return i&&i[fh]?i[fh]():r},a[ch]=function(){return r=!0,i&&i[ch]&&i[ch](),a},a[uh]=o,a=br(a,p1,{get:function(){return!!i},set:u}),{h:a,dn:function(){i=Ft}}}function Ey(e,t,n){var r=Ae(t),i=r?t.length:0,a=(i>0?t[0]:r?qt:t)||setTimeout,o=(i>1?t[1]:qt)||clearTimeout,s=n[0];n[0]=function(){c.dn(),so(s,qt,wr[Ct](arguments))};var c=_1(e,function(u){if(u){if(u.refresh)return u.refresh(),u;so(o,qt,[u])}return so(a,qt,n)},function(u){so(o,qt,[u])});return c.h}function _n(e,t){return Ey(!0,qt,wr[Ct](arguments))}function m1(e,t){return Ey(!1,qt,wr[Ct](arguments))}var $c,Uc="constructor",Ir="prototype",Bc="function",Hc="_dynInstFuncs",dh="_isDynProxy",co="_dynClass",g1="_dynCls$",hh="_dynInstChk",Fs=hh,Sy="_dfOpts",Ty="_unknown_",vh="__proto__",Gc="_dyn"+vh,Ny="__dynProto$Gbl",ph="_dynInstProto",Wc="useBaseInst",_h="setInstFuncs",mh=Object,$s=mh.getPrototypeOf,Dy=mh.getOwnPropertyNames,wy=pn(),gh=wy[Ny]||(wy[Ny]={o:($c={},$c[_h]=!0,$c[Wc]=!0,$c),n:1e3});function jc(e){return e&&(e===mh[Ir]||e===Array[Ir])}function yh(e){return jc(e)||e===Function[Ir]}function zi(e){var t;if(e){if($s)return $s(e);var n=e[vh]||e[Ir]||(e[Uc]?e[Uc][Ir]:null);t=e[Gc]||n,hn(e,Gc)||(delete e[ph],t=e[Gc]=e[ph]||e[Gc],e[ph]=n)}return t}function zc(e,t){var n=[];if(Dy)n=Dy(e);else for(var r in e)typeof r=="string"&&hn(e,r)&&n.push(r);if(n&&n.length>0)for(var i=0;i<n.length;i++)t(n[i])}function Eh(e,t,n){return t!==Uc&&typeof e[t]===Bc&&(n||hn(e,t))&&t!==vh&&t!==Ir}function Kc(e){Rn("DynamicProto: "+e)}function y1(e){var t=ii(null);return zc(e,function(n){!t[n]&&Eh(e,n,!1)&&(t[n]=e[n])}),t}function Sh(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function E1(e,t,n,r){function i(c,u,f){var d=u[f];if(d[dh]&&r){var v=c[Hc]||{};v[Fs]!==!1&&(d=(v[u[co]]||{})[f]||d)}return function(){return d.apply(c,arguments)}}var a=ii(null);zc(n,function(c){a[c]=i(t,n,c)});for(var o=zi(e),s=[];o&&!yh(o)&&!Sh(s,o);)zc(o,function(c){!a[c]&&Eh(o,c,!$s)&&(a[c]=i(t,o,c))}),s.push(o),o=zi(o);return a}function S1(e,t,n,r){var i=null;if(e&&hn(n,co)){var a=e[Hc]||ii(null);if(i=(a[n[co]]||ii(null))[t],i||Kc("Missing ["+t+"] "+Bc),!i[hh]&&a[Fs]!==!1){for(var o=!hn(e,t),s=zi(e),c=[];o&&s&&!yh(s)&&!Sh(c,s);){var u=s[t];if(u){o=u===r;break}c.push(s),s=zi(s)}try{o&&(e[t]=i),i[hh]=1}catch{a[Fs]=!1}}}return i}function T1(e,t,n){var r=t[e];return r===n&&(r=zi(t)[e]),typeof r!==Bc&&Kc("["+e+"] is not a "+Bc),r}function N1(e,t,n,r,i){function a(c,u){var f=function(){var d=S1(this,u,c,f)||T1(u,c,f);return d.apply(this,arguments)};return f[dh]=1,f}if(!jc(e)){var o=n[Hc]=n[Hc]||ii(null);if(!jc(o)){var s=o[t]=o[t]||ii(null);o[Fs]!==!1&&(o[Fs]=!!i),jc(s)||zc(n,function(c){Eh(n,c,!1)&&n[c]!==r[c]&&(s[c]=n[c],delete n[c],(!hn(e,c)||e[c]&&!e[c][dh])&&(e[c]=a(e,c)))})}}}function D1(e,t){if($s){for(var n=[],r=zi(t);r&&!yh(r)&&!Sh(n,r);){if(r===e)return!0;n.push(r),r=zi(r)}return!1}return!0}function Th(e,t){return hn(e,Ir)?e.name||t||Ty:((e||{})[Uc]||{}).name||t||Ty}function et(e,t,n,r){hn(e,Ir)||Kc("theClass is an invalid class definition.");var i=e[Ir];D1(i,t)||Kc("["+Th(e)+"] not in hierarchy of ["+Th(t)+"]");var a=null;hn(i,co)?a=i[co]:(a=g1+Th(e,"_")+"$"+gh.n,gh.n++,i[co]=a);var o=et[Sy],s=!!o[Wc];s&&r&&r[Wc]!==void 0&&(s=!!r[Wc]);var c=y1(t),u=E1(i,t,c,s);n(t,u);var f=!!$s&&!!o[_h];f&&r&&(f=!!r[_h]),N1(i,a,t,c,f!==!1)}et[Sy]=gh.o;var by="function",ky="object",Nh="undefined",qn="prototype",Dh=Object,w1=Dh[qn];(pn()||{}).Symbol,(pn()||{}).Reflect;var Cy="hasOwnProperty",b1=function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)w1[Cy].call(t,i)&&(e[i]=t[i])}return e},Ut=Wd||b1,wh=function(e,t){return wh=Dh.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r[Cy](i)&&(n[i]=r[i])},wh(e,t)};function Rr(e,t){typeof t!==by&&t!==null&&Rn("Class extends value "+String(t)+" is not a constructor or null"),wh(e,t);function n(){this.constructor=e}e[qn]=t===null?ii(t):(n[qn]=t[qn],new n)}function Oy(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}var Iy=YR,k1=VR,ai=Iy({NONE:0,PENDING:3,INACTIVE:1,ACTIVE:2}),uo="toLowerCase",qc="blkVal",Ne="length",Xc="rdOnly",Jc="notify",Qc="warnToConsole",Us="throwInternal",fo="setDf",oi="watch",vt="logger",Ki="apply",He="push",ho="splice",Ry="hdlr",vo="cancel",Bs="initialize",si="identifier",Zc="removeNotificationListener",eu="addNotificationListener",Xn="isInitialized",Py="instrumentationKey",bh="INACTIVE",Hs="value",tu="getNotifyMgr",Gs="getPlugin",Pr="name",Ws="iKey",po="time",Bt="processNext",Ay="getProcessTelContext",My="pollInternalLogs",_o="enabled",Yy="stopPollingInternalLogs",li="unload",nu="onComplete",ru="version",xy="loggingLevelConsole",qi="createNew",Ar="teardown",iu="messageId",Xi="message",mo="isAsync",Mr="diagLog",au="_doTeardown",js="update",Jn="getNext",zs="setNextPlugin",Ly="protocol",kh="userAgent",go="split",Ch="nodeType",Ji="replace",Vy="logInternalMessage",Yr="type",Oh="handler",Ks="status",Fy="getResponseHeader",$y="getAllResponseHeaders",Ih="isChildEvt",yo="data",Eo="getCtx",Qn="setCtx",Rh="complete",Uy="itemsReceived",qs="urlString",By="sendPOST",Ph="headers",So="timeout",Hy="setRequestHeader",Ah="traceId",Mh="spanId",Yh="traceFlags",xh="getAttribute",Lh;function C1(e,t){Lh||(Lh=fy("AggregationError",function(r,i){i[Ne]>1&&(r.errors=i[1])}));var n=e||"One or more errors occurred.";throw ie(t,function(r,i){n+=`
|
|
48
|
+
`.concat(i," > ").concat(ae(r))}),new Lh(n,t||[])}/*!
|
|
49
|
+
* NevWare21 Solutions LLC - ts-async, 0.5.2
|
|
50
|
+
* https://github.com/nevware21/ts-async
|
|
51
|
+
* Copyright (c) NevWare21 Solutions LLC and contributors. All rights reserved.
|
|
52
|
+
* Licensed under the MIT license.
|
|
53
|
+
*/var ou="Promise",Vh="rejected";function xr(e,t){return Gy(e,function(n){return t?t({status:"fulfilled",rejected:!1,value:n}):n},function(n){return t?t({status:Vh,rejected:!0,reason:n}):n})}function Gy(e,t,n,r){var i=e;try{if(Wi(e))(t||n)&&(i=e.then(t,n));else try{t&&(i=t(e))}catch(a){if(n)i=n(a);else throw a}}finally{r&&O1(i,r)}return i}function O1(e,t){var n=e;return t&&(Wi(e)?e.finally?n=e.finally(t):n=e.then(function(r){return t(),r},function(r){throw t(),r}):t()),n}var Wy=["pending","resolving","resolved",Vh],jy="dispatchEvent",su;function I1(e){var t;return e&&e.createEvent&&(t=e.createEvent("Event")),!!t&&t.initEvent}function R1(e,t,n,r){var i=Ot();!su&&(su=vn(!!bt(I1,[i]).v));var a=su.v?i.createEvent("Event"):r?new Event(t):{};if(n&&n(a),su.v&&a.initEvent(t,!1,!0),a&&e[jy])e[jy](a);else{var o=e["on"+t];if(o)o(a);else{var s=ct("console");s&&(s.error||s.log)(t,ae(a))}}}var zy="unhandledRejection",P1=zy.toLowerCase(),Ky=[],A1=0,M1=10,Fh;function qy(e){return we(e)?e.toString():ae(e)}function Y1(e,t,n){var r=Fc(arguments,3),i=0,a=!1,o,s=[],c=A1++,u=!1,f=null,d;function v(P,V){try{Ky.push(c),u=!0,f&&f.cancel(),f=null;var w=e(function(O,K){s.push(function(){try{var $=i===2?P:V,R=it($)?o:we($)?$(o):$;Wi(R)?R.then(O,K):$?O(R):i===3?K(R):O(R)}catch(Y){K(Y)}}),a&&m()},r);return w}finally{Ky.pop()}}function h(P){return v(void 0,P)}function p(P){var V=P,w=P;return we(P)&&(V=function(O){return P&&P(),O},w=function(O){throw P&&P(),O}),v(V,w)}function _(){return Wy[i]}function m(){if(s.length>0){var P=s.slice();s=[],u=!0,f&&f.cancel(),f=null,t(P)}}function g(P,V){return function(w){if(i===V){if(P===2&&Wi(w)){i=1,w.then(g(2,1),g(3,1));return}i=P,a=!0,o=w,m(),!u&&P===3&&!f&&(f=_n(E,M1))}}}function E(){if(!u)if(u=!0,KR())process.emit(zy,o,d);else{var P=Qt()||pn();!Fh&&(Fh=vn(bt(ct,[ou+"RejectionEvent"]).v)),R1(P,P1,function(V){return Be(V,"promise",{g:function(){return d}}),V.reason=o,V},!!Fh.v)}}d={then:v,catch:h,finally:p},br(d,"state",{get:_}),XR()&&(d[Qd(11)]="IPromise");function C(){return"IPromise "+_()+(a?" - "+qy(o):"")}return d.toString=C,function(){we(n)||Rn(ou+": executor is not a function - "+qy(n));var V=g(3,0);try{n.call(d,g(2,0),V)}catch(w){V(w)}}(),d}function x1(e){return function(t){var n=Fc(arguments,1);return e(function(r,i){try{var a=[],o=1;th(t,function(s,c){s&&(o++,Gy(s,function(u){a[c]=u,--o===0&&r(a)},i))}),o--,o===0&&r(a)}catch(s){i(s)}},n)}}function L1(e){return vn(function(t){var n=Fc(arguments,1);return e(function(r,i){var a=[],o=1;function s(c,u){o++,xr(c,function(f){f.rejected?a[u]={status:Vh,reason:f.reason}:a[u]={status:"fulfilled",value:f.value},--o===0&&r(a)})}try{Ae(t)?ie(t,s):ly(t)?th(t,s):Rn("Input is not an iterable"),o--,o===0&&r(a)}catch(c){i(c)}},n)})}function V1(e){ie(e,function(t){try{t()}catch{}})}function F1(e){var t=Ys(e)?e:0;return function(n){_n(function(){V1(n)},t)}}function Xs(e,t){return Y1(Xs,F1(t),e,t)}var $h;function $1(e,t){!$h&&($h=vn(bt(ct,[ou]).v||null));var n=$h.v;if(!n)return Xs(e);we(e)||Rn(ou+": executor is not a function - "+ae(e));var r=0;function i(){return Wy[r]}var a=new n(function(o,s){function c(f){r=2,o(f)}function u(f){r=3,s(f)}e(c,u)});return br(a,"state",{get:i}),a}var Uh,Bh;function Lr(e,t){return!Uh&&(Uh=vn($1)),Uh.v.call(this,e,t)}var U1=x1(Lr);function B1(e,t){return!Bh&&(Bh=L1(Lr)),Bh.v(e,t)}var Zn=void 0,Fe="",Qi="channels",Nt="core",Hh="createPerfMgr",Gh="disabled",To="extensionConfig",No="extensions",er="processTelemetry",lu="priority",cu="eventsSent",Js="eventsDiscarded",uu="eventsSendRequest",Zi="perfEvent",Wh="offlineEventsStored",jh="offlineBatchSent",zh="offlineBatchDrop",fu="getPerfMgr",Kh="domain",qh="path",H1="Not dynamic - ",G1="getPrototypeOf",W1=/-([a-z])/g,j1=/([^\w\d_$])/g,z1=/^(\d+[\w\d_$])/,K1=Object[G1];function ea(e){return!W(e)}function du(e){var t=e;return t&&Se(t)&&(t=t[Ji](W1,function(n,r){return r.toUpperCase()}),t=t[Ji](j1,"_"),t=t[Ji](z1,function(n,r){return"_"+r})),t}function xt(e,t){return e&&t?Zt(e,t)!==-1:!1}function Do(e){return e&&e.toISOString()||""}function je(e){return Hd(e)?e[Pr]:Fe}function Ze(e,t,n,r,i){var a=n;return e&&(a=e[t],a!==n&&(!i||i(a))&&(!r||r(n))&&(a=n,e[t]=a)),a}function Ht(e,t,n){var r;return e?(r=e[t],!r&&W(r)&&(r=it(n)?{}:n,e[t]=r)):r=it(n)?{}:n,r}function Xy(e,t){var n=null,r=null;return we(e)?n=e:r=e,function(){var i=arguments;if(n&&(r=n()),r)return r[t][Ki](r,i)}}function q1(e,t,n){if(e&&t&&Xt(e)&&Xt(t)){var r=function(a){if(Se(a)){var o=t[a];we(o)?(!n||n(a,!0,t,e))&&(e[a]=Xy(t,a)):(!n||n(a,!1,t,e))&&(ti(e,a)&&delete e[a],Be(e,a,{g:function(){return t[a]},s:function(s){t[a]=s}}))}};for(var i in t)r(i)}return e}function hu(e,t,n,r,i){e&&t&&n&&(i!==!1||it(e[t]))&&(e[t]=Xy(n,r))}function Qs(e,t,n,r){return e&&t&&Xt(e)&&Ae(n)&&ie(n,function(i){Se(i)&&hu(e,i,t,i,r)}),e}function X1(e){return function(){function t(){var n=this;e&&Me(e,function(r,i){n[r]=i})}return t}()}function Jy(e){return e&&Wd&&(e=Dh(Wd({},e))),e}function Qy(e,t,n,r,i,a){var o=arguments,s=o[0]||{},c=o[Ne],u=!1,f=1;for(c>0&&qg(s)&&(u=s,s=o[f]||{},f++),Xt(s)||(s={});f<c;f++){var d=o[f],v=Ae(d),h=Xt(d);for(var p in d){var _=v&&p in d||h&&ti(d,p);if(_){var m=d[p],g=void 0;if(u&&m&&((g=Ae(m))||$t(m))){var E=s[p];g?Ae(E)||(E=[]):$t(E)||(E={}),m=Qy(u,E,m)}m!==void 0&&(s[p]=m)}}}return s}function Xh(e,t){var n=!1,r=t&&t.featureOptIn&&t.featureOptIn[e];if(e&&r){var i=r.mode;n=i==3||i==1}return n}function vu(e){try{return e.responseText}catch{}return null}function Zy(e,t){return e?"XDomainRequest,Response:"+vu(e)||"":t}function pu(e,t){return e?"XMLHttpRequest,Status:"+e[Ks]+",Response:"+vu(e)||e.response||"":t}function eE(e,t){return t&&(Ys(t)?e=[t].concat(e):Ae(t)&&(e=t.concat(e))),e}var J1="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",tE="withCredentials",Q1="timeout";function Z1(e,t,n,r,i,a){r===void 0&&(r=!1),i===void 0&&(i=!1);function o(c,u,f){try{c[u]=f}catch{}}var s=new XMLHttpRequest;return r&&o(s,J1,r),n&&o(s,tE,n),s.open(e,t,!i),n&&o(s,tE,n),!i&&a&&o(s,Q1,a),s}function eP(e){var t={};if(Se(e)){var n=gt(e)[go](/[\r\n]+/);ie(n,function(r){if(r){var i=r.indexOf(": ");if(i!==-1){var a=gt(r.substring(0,i))[uo](),o=gt(r.substring(i+1));t[a]=o}else t[gt(r)]=1}})}return t}function Jh(e,t,n){if(!e[n]&&t&&t[Fy]){var r=t[Fy](n);r&&(e[n]=gt(r))}return e}var tP="kill-duration",nP="kill-duration-seconds",rP="time-delta-millis";function Qh(e,t){var n={};return e[$y]?n=eP(e[$y]()):t&&(n=Jh(n,e,rP),n=Jh(n,e,tP),n=Jh(n,e,nP)),n}var iP="documentMode",aP="location",oP="console",nE="JSON",sP="crypto",lP="msCrypto",cP="ReactNative",Zh="msie",ev="trident/",rE="XMLHttpRequest",tv=null,nv=null,uP=!1,wo=null,rv=null;function iE(e,t){var n=!1;if(e){try{if(n=t in e,!n){var r=e[qn];r&&(n=t in r)}}catch{}if(!n)try{var i=new e;n=!it(i[t])}catch{}}return n}function tr(e){if(e&&uP){var t=ct("__mockLocation");if(t)return t}return typeof location===ky&&location?location:ct(aP)}function fP(){return typeof console!==Nh?console:ct(oP)}function Zs(){return!!(typeof JSON===ky&&JSON||ct(nE)!==null)}function Pn(){return Zs()?JSON||ct(nE):null}function dP(){return ct(sP)}function hP(){return ct(lP)}function vP(){var e=zn();return e&&e.product?e.product===cP:!1}function iv(){var e=zn();if(e&&(e[kh]!==nv||tv===null)){nv=e[kh];var t=(nv||Fe)[uo]();tv=xt(t,Zh)||xt(t,ev)}return tv}function aE(e){if(e===void 0&&(e=null),!e){var t=zn()||{};e=t?(t.userAgent||Fe)[uo]():Fe}var n=(e||Fe)[uo]();if(xt(n,Zh)){var r=Ot()||{};return Math.max(parseInt(n[go](Zh)[1]),r[iP]||0)}else if(xt(n,ev)){var i=parseInt(n[go](ev)[1]);if(i)return i+4}return null}function el(e){return(rv===null||e===!1)&&(rv=jR()&&!!zn().sendBeacon),rv}function av(e){var t=!1;try{t=!!ct("fetch");var n=ct("Request");t&&e&&n&&(t=iE(n,"keepalive"))}catch{}return t}function pP(){return wo===null&&(wo=typeof XDomainRequest!==Nh,wo&&_u()&&(wo=wo&&!iE(ct(rE),"withCredentials"))),wo}function _u(){var e=!1;try{var t=ct(rE);e=!!t}catch{}return e}function _P(e,t){return e&&e.dispatchEvent&&t?(e.dispatchEvent(t),!0):!1}function mP(e,t){var n=null,r={detail:t||null};if(we(CustomEvent))n=new CustomEvent(e,r);else{var i=Ot();i&&i.createEvent&&(n=i.createEvent("CustomEvent"),n.initCustomEvent(e,!0,!0,r))}return n}function gP(e,t,n){var r=pn();if(r&&r.CustomEvent)try{var i={cfg:t||null,customDetails:n||null};return _P(r,mP(e,i))}catch{}return!1}var oE=4294967296,ci=4294967295,sE=123456789,lE=987654321,cE=!1,tl=sE,nl=lE;function yP(e){e<0&&(e>>>=0),tl=sE+e&ci,nl=lE-e&ci,cE=!0}function EP(){try{var e=Kn()&2147483647;yP((Math.random()*oE^e)+e)}catch{}}function SP(e){return e>0?Math.floor(rl()/ci*(e+1))>>>0:0}function rl(e){var t=0,n=dP()||hP();return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&ci),t===0&&iv()&&(cE||EP(),t=TP()&ci),t===0&&(t=Math.floor(oE*Math.random()|0)),e||(t>>>=0),t}function TP(e){nl=36969*(nl&65535)+(nl>>16)&ci,tl=18e3*(tl&65535)+(tl>>16)&ci;var t=(nl<<16)+(tl&65535)>>>0&ci|0;return e||(t>>>=0),t}function ov(e){e===void 0&&(e=22);for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=rl()>>>0,r=0,i=Fe;i[Ne]<e;)r++,i+=t.charAt(n&63),n>>>=6,r===5&&(n=(rl()<<2&4294967295|n&3)>>>0,r=0);return i}var uE="3.3.1",NP="."+ov(6),DP=0;function fE(e){return e[Ch]===1||e[Ch]===9||!+e[Ch]}function wP(e,t){var n=t[e.id];if(!n){n={};try{fE(t)&&Be(t,e.id,{e:!1,v:n})}catch{}}return n}function mn(e,t){return t===void 0&&(t=!1),du(e+DP+++(t?"."+uE:Fe)+NP)}function dE(e){var t={id:mn("_aiData-"+(e||Fe)+"."+uE),accept:function(n){return fE(n)},get:function(n,r,i,a){var o=n[t.id];return o?o[du(r)]:(a&&(o=wP(t,n),o[du(r)]=i),i)},kill:function(n,r){if(n&&n[r])try{delete n[r]}catch{}}};return t}function mu(e){return e&&Xt(e)&&(e.isVal||e.fb||ti(e,"v")||ti(e,"mrg")||ti(e,"ref")||e.set)}function hE(e,t,n){var r,i=n.dfVal||Kg;if(t&&n.fb){var a=n.fb;Ae(a)||(a=[a]);for(var o=0;o<a[Ne];o++){var s=a[o],c=t[s];if(i(c)?r=c:e&&(c=e.cfg[s],i(c)&&(r=c),e.set(e.cfg,Jt(s),c)),i(r))break}}return!i(r)&&i(n.v)&&(r=n.v),r}function sv(e,t,n){var r=n;if(n&&mu(n)&&(r=hE(e,t,n)),r){mu(r)&&(r=sv(e,t,r));var i;Ae(r)?(i=[],i[Ne]=r[Ne]):$t(r)&&(i={}),i&&(Me(r,function(a,o){o&&mu(o)&&(o=sv(e,t,o)),i[a]=o}),r=i)}return r}function lv(e,t,n,r){var i,a,o,s=r,c,u,f,d;mu(s)?(i=s.isVal,a=s.set,f=s[Xc],d=s[qc],c=s.mrg,u=s.ref,!u&&it(u)&&(u=!!c),o=hE(e,t,s)):o=r,d&&e[qc](t,n);var v,h=!0,p=t[n];(p||!W(p))&&(v=p,h=!1,i&&v!==o&&!i(v)&&(v=o,h=!0),a&&(v=a(v,o,t),h=v===o)),h?o?v=sv(e,t,o):v=o:($t(v)||Ae(o))&&c&&o&&($t(o)||Ae(o))&&Me(o,function(_,m){lv(e,v,_,m)}),e.set(t,n,v),u&&e.ref(t,n),f&&e[Xc](t,n)}var ui=Zd("[[ai_dynCfg_1]]"),vE=Zd("[[ai_blkDynCfg_1]]"),bP=Zd("[[ai_frcDynCfg_1]]");function pE(e){if(e){var t;if(Ae(e)?(t=[],t[Ne]=e[Ne]):$t(e)&&(t={}),t)return Me(e,function(n,r){t[n]=pE(r)}),t}return e}function kP(e){if(e){var t=e[ui]||e;if(t.cfg&&(t.cfg===e||t.cfg[ui]===t))return t}return null}function CP(e){if(e&&($t(e)||Ae(e)))try{e[vE]=!0}catch{}return e}function cv(e,t,n){var r=!1;return n&&!e[t.blkVal]&&(r=n[bP],!r&&!n[vE]&&(r=$t(n)||Ae(n))),r}function _E(e){Rn("InvalidAccess:"+e)}var OP=["push","pop","shift","unshift","splice"],il=function(e,t,n,r){e&&e[Us](3,108,"".concat(n," [").concat(t,"] failed - ")+ae(r))};function IP(e,t,n){Ae(t)&&ie(OP,function(r){var i=t[r];t[r]=function(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];var s=i[Ki](this,a);return Eu(e,t,n,"Patching"),s}})}function gu(e,t){var n=Gd(e,t);return n&&n.get}function RP(e,t,n,r){var i={n,h:[],trk:function(u){u&&u.fn&&(Yt(i.h,u)===-1&&i.h[He](u),e.trk(u,i))},clr:function(u){var f=Yt(i.h,u);f!==-1&&i.h[ho](f,1)}},a=!0,o=!1;function s(){a&&(o=o||cv(s,e,r),r&&!r[ui]&&o&&(r=Eu(e,r,n,"Converting")),a=!1);var u=e.act;return u&&i.trk(u),r}s[e.prop]={chng:function(){e.add(i)}};function c(u){if(r!==u){s[e.ro]&&!e.upd&&_E("["+n+"] is read-only:"+ae(t)),a&&(o=o||cv(s,e,r),a=!1);var f=o&&s[e.rf];if(o)if(f){Me(r,function(v){r[v]=u?u[v]:Zn});try{Me(u,function(v,h){yu(e,r,v,h)}),u=r}catch(v){il((e.hdlr||{})[vt],n,"Assigning",v),o=!1}}else r&&r[ui]&&Me(r,function(v){var h=gu(r,v);if(h){var p=h[e.prop];p&&p.chng()}});if(u!==r){var d=u&&cv(s,e,u);!f&&d&&(u=Eu(e,u,n,"Converting")),r=u,o=d}e.add(i)}}Be(t,i.n,{g:s,s:c})}function yu(e,t,n,r){if(t){var i=gu(t,n),a=i&&!!i[e.prop];a?t[n]=r:RP(e,t,n,r)}return t}function uv(e,t,n,r){if(t){var i=gu(t,n),a=i&&!!i[e.prop],o=r&&r[0],s=r&&r[1],c=r&&r[2];if(!a){if(c)try{CP(t)}catch(u){il((e.hdlr||{})[vt],n,"Blocking",u)}try{yu(e,t,n,t[n]),i=gu(t,n)}catch(u){il((e.hdlr||{})[vt],n,"State",u)}}o&&(i[e.rf]=o),s&&(i[e.ro]=s),c&&(i[e.blkVal]=!0)}return t}function Eu(e,t,n,r){try{Me(t,function(i,a){yu(e,t,i,a)}),t[ui]||(br(t,ui,{get:function(){return e[Ry]}}),IP(e,t,n))}catch(i){il((e.hdlr||{})[vt],n,r,i)}return t}var al="[[ai_",ol="]]";function PP(e){var t,n=Ls(al+"get"+e.uid+ol),r=Ls(al+"ro"+e.uid+ol),i=Ls(al+"rf"+e.uid+ol),a=Ls(al+"blkVal"+e.uid+ol),o=Ls(al+"dtl"+e.uid+ol),s=null,c=null,u;function f(p,_){var m=u.act;try{u.act=p,p&&p[o]&&(ie(p[o],function(E){E.clr(p)}),p[o]=[]),_({cfg:e.cfg,set:e.set.bind(e),setDf:e[fo].bind(e),ref:e.ref.bind(e),rdOnly:e[Xc].bind(e)})}catch(E){var g=e[vt];throw g&&g[Us](1,107,ae(E)),E}finally{u.act=m||null}}function d(){if(s){var p=s;s=null,c&&c[vo](),c=null;var _=[];if(ie(p,function(m){if(m&&(m[o]&&(ie(m[o],function(g){g.clr(m)}),m[o]=null),m.fn))try{f(m,m.fn)}catch(g){_[He](g)}}),s)try{d()}catch(m){_[He](m)}_[Ne]>0&&C1("Watcher error(s): ",_)}}function v(p){if(p&&p.h[Ne]>0){s||(s=[]),c||(c=_n(function(){c=null,d()},0));for(var _=0;_<p.h[Ne];_++){var m=p.h[_];m&&Yt(s,m)===-1&&s[He](m)}}}function h(p,_){if(p){var m=p[o]=p[o]||[];Yt(m,_)===-1&&m[He](_)}}return u=(t={prop:n,ro:r,rf:i},t[qc]=a,t[Ry]=e,t.add=v,t[Jc]=d,t.use=f,t.trk=h,t),u}function AP(e,t){var n={fn:t,rm:function(){n.fn=null,e=null,t=null}};return Be(n,"toJSON",{v:function(){return"WatcherHandler"+(n.fn?"":"[X]")}}),e.use(n,t),n}function MP(e,t,n){var r,i=kP(t);if(i)return i;var a=mn("dyncfg",!0),o=t&&n!==!1?t:pE(t),s;function c(){s[Jc]()}function u(g,E,C){try{g=yu(s,g,E,C)}catch(P){il(e,E,"Setting value",P)}return g[E]}function f(g){return AP(s,g)}function d(g,E){s.use(null,function(C){var P=s.upd;try{it(E)||(s.upd=E),g(C)}finally{s.upd=P}})}function v(g,E){var C;return uv(s,g,E,(C={},C[0]=!0,C))[E]}function h(g,E){var C;return uv(s,g,E,(C={},C[1]=!0,C))[E]}function p(g,E){var C;return uv(s,g,E,(C={},C[2]=!0,C))[E]}function _(g,E){return E&&Me(E,function(C,P){lv(m,g,C,P)}),g}var m=(r={uid:null,cfg:o},r[vt]=e,r[Jc]=c,r.set=u,r[fo]=_,r[oi]=f,r.ref=v,r[Xc]=h,r[qc]=p,r._block=d,r);return Be(m,"uid",{c:!1,e:!1,w:!1,v:a}),s=PP(m),Eu(s,o,"config","Creating"),m}function YP(e,t){e?(e[Qc](t),e[Us](2,108,t)):_E(t)}function gn(e,t,n,r){var i=MP(n,e||{},r);return t&&i[fo](i.cfg,t),i}function pt(e,t,n){var r=e[ui]||e;return r.cfg&&(r.cfg===e||r.cfg[ui]===r)?r[oi](t):(YP(n,H1+ae(e)),gn(e,null,n)[oi](t))}function bo(e,t){if(e&&e[li])return e[li](t)}function mE(e,t,n){var r;return n||(r=Lr(function(i){n=i})),e&&h1(e)>0?xr(bo(e[0],t),function(){mE(Fc(e,1),t,n)}):n(),r}var xP=500,gE="Microsoft_ApplicationInsights_BypassAjaxInstrumentation";function LP(e,t,n){return!e&&W(e)?t:qg(e)?e:Jt(e)[uo]()==="true"}function An(e){return{mrg:!0,v:e}}function yE(e,t){return{set:e,v:t}}function Su(e,t,n){return{fb:n,isVal:e,v:t}}function yt(e,t){return{fb:t,set:LP,v:!!e}}function VP(e){return{isVal:Se,v:Jt(e||Fe)}}var fv=[cu,Js,uu,Zi],Tu=null,Nu;function FP(e,t){return function(){var n=arguments,r=EE(t);if(r){var i=r.listener;i&&i[e]&&i[e][Ki](i,n)}}}function $P(){var e=ct("Microsoft");return e&&(Tu=e.ApplicationInsights),Tu}function EE(e){var t=Tu;return!t&&e.disableDbgExt!==!0&&(t=Tu||$P()),t?t.ChromeDbgExt:null}function UP(e){if(!Nu){Nu={};for(var t=0;t<fv[Ne];t++)Nu[fv[t]]=FP(fv[t],e)}return Nu}var ko,SE="warnToConsole",BP="AI (Internal): ",HP="AI: ",GP="AITR_",WP={loggingLevelConsole:0,loggingLevelTelemetry:1,maxMessageLimit:25,enableDebug:!1},jP=(ko={},ko[0]=null,ko[1]="errorToConsole",ko[2]=SE,ko[3]="debugToConsole",ko);function TE(e){return e?'"'+e[Ji](/\"/g,Fe)+'"':Fe}function dv(e,t){var n=fP();if(n){var r="log";n[e]&&(r=e),we(n[r])&&n[r](t)}}var sl=function(){function e(t,n,r,i){r===void 0&&(r=!1);var a=this;a[iu]=t,a[Xi]=(r?HP:BP)+t;var o=Fe;Zs()&&(o=Pn().stringify(i));var s=(n?" message:"+TE(n):Fe)+(i?" props:"+TE(o):Fe);a[Xi]+=s}return e.dataType="MessageData",e}();function ta(e,t){return(e||{})[vt]||new Du(t)}var Du=function(){function e(t){this.identifier="DiagnosticLogger",this.queue=[];var n=0,r={},i,a,o,s,c;et(e,this,function(u){c=d(t||{}),u.consoleLoggingLevel=function(){return i},u[Us]=function(p,_,m,g,E){E===void 0&&(E=!1);var C=new sl(_,m,E,g);if(s)throw ae(C);var P=jP[p]||SE;if(it(C[Xi]))h("throw"+(p===1?"Critical":"Warning"),C);else{if(E){var V=+C[iu];!r[V]&&i>=p&&(u[P](C[Xi]),r[V]=!0)}else i>=p&&u[P](C[Xi]);f(p,C)}},u.debugToConsole=function(p){dv("debug",p),h("warning",p)},u[Qc]=function(p){dv("warn",p),h("warning",p)},u.errorToConsole=function(p){dv("error",p),h("error",p)},u.resetInternalMessageCount=function(){n=0,r={}},u[Vy]=f,u[li]=function(p){c&&c.rm(),c=null};function f(p,_){if(!v()){var m=!0,g=GP+_[iu];if(r[g]?m=!1:r[g]=!0,m&&(p<=a&&(u.queue[He](_),n++,h(p===1?"error":"warn",_)),n===o)){var E="Internal events throttle limit per PageView reached for this app.",C=new sl(23,E,!1);u.queue[He](C),p===1?u.errorToConsole(E):u[Qc](E)}}}function d(p){return pt(gn(p,WP,u).cfg,function(_){var m=_.cfg;i=m[xy],a=m.loggingLevelTelemetry,o=m.maxMessageLimit,s=m.enableDebug})}function v(){return n>=o}function h(p,_){var m=EE(t||{});m&&m[Mr]&&m[Mr](p,_)}})}return e.__ieDyn=1,e}();function hv(e){return e||new Du}function ee(e,t,n,r,i,a){a===void 0&&(a=!1),hv(e)[Us](t,n,r,i,a)}function na(e,t){hv(e)[Qc](t)}function zP(e,t,n){hv(e)[Vy](t,n)}var vv,ra,NE="toGMTString",DE="toUTCString",pv="cookie",_v="expires",wE="isCookieUseDisabled",mv="disableCookiesUsage",fi="_ckMgr",wu=null,gv=null,bE=null,nr,kE={},bu={},KP=(vv={cookieCfg:An((ra={},ra[Kh]={fb:"cookieDomain",dfVal:ea},ra.path={fb:"cookiePath",dfVal:ea},ra.enabled=Zn,ra.ignoreCookies=Zn,ra.blockedCookies=Zn,ra)),cookieDomain:Zn,cookiePath:Zn},vv[mv]=Zn,vv);function yv(){!nr&&(nr=WR(function(){return Ot()}))}function qP(e,t){var n=ll[fi]||bu[fi];return n||(n=ll[fi]=ll(e,t),bu[fi]=n),n}function ku(e){return e?e.isEnabled():!0}function CE(e,t){return t&&e&&Ae(e.ignoreCookies)?Yt(e.ignoreCookies,t)!==-1:!1}function XP(e,t){return t&&e&&Ae(e.blockedCookies)&&Yt(e.blockedCookies,t)!==-1?!0:CE(e,t)}function OE(e,t){var n=t[_o];if(W(n)){var r=void 0;it(e[wE])||(r=!e[wE]),it(e[mv])||(r=!e[mv]),n=r}return n}function Ev(e,t){var n;if(e)n=e.getCookieMgr();else if(t){var r=t.cookieCfg;r&&r[fi]?n=r[fi]:n=ll(t)}return n||(n=qP(t,(e||{})[vt])),n}function ll(e,t){var n,r,i,a,o,s,c,u,f;e=gn(e||bu,null,t).cfg,o=pt(e,function(v){v[fo](v.cfg,KP),r=v.ref(v.cfg,"cookieCfg"),i=r[qh]||"/",a=r[Kh],s=OE(e,r)!==!1,c=r.getCookie||JP,u=r.setCookie||ME,f=r.delCookie||ME},t);var d=(n={isEnabled:function(){var v=OE(e,r)!==!1&&s&&IE(t),h=bu[fi];return v&&h&&d!==h&&(v=ku(h)),v},setEnabled:function(v){s=v!==!1,r[_o]=v},set:function(v,h,p,_,m){var g=!1;if(ku(d)&&!XP(r,v)){var E={},C=gt(h||Fe),P=Zt(C,";");if(P!==-1&&(C=gt(Kd(h,P)),E=RE(jn(h,P+1))),Ze(E,Kh,_||a,Rc,it),!W(p)){var V=iv();if(it(E[_v])){var w=Kn(),O=w+p*1e3;if(O>0){var K=new Date;K.setTime(O),Ze(E,_v,PE(K,V?NE:DE)||PE(K,V?NE:DE)||Fe,Rc)}}V||Ze(E,"max-age",Fe+p,null,it)}var $=tr();$&&$[Ly]==="https:"&&(Ze(E,"secure",null,null,it),gv===null&&(gv=!QP((zn()||{})[kh])),gv&&Ze(E,"SameSite","None",null,it)),Ze(E,qh,m||i,null,it),u(v,AE(C,E)),g=!0}return g},get:function(v){var h=Fe;return ku(d)&&!CE(r,v)&&(h=c(v)),h},del:function(v,h){var p=!1;return ku(d)&&(p=d.purge(v,h)),p},purge:function(v,h){var p,_=!1;if(IE(t)){var m=(p={},p[qh]=h||"/",p[_v]="Thu, 01 Jan 1970 00:00:01 GMT",p);iv()||(m["max-age"]="0"),f(v,AE(Fe,m)),_=!0}return _}},n[li]=function(v){o&&o.rm(),o=null},n);return d[fi]=d,d}function IE(e){if(wu===null){wu=!1,!nr&&yv();try{var t=nr.v||{};wu=t[pv]!==void 0}catch(n){ee(e,2,68,"Cannot access document.cookie - "+je(n),{exception:ae(n)})}}return wu}function RE(e){var t={};if(e&&e[Ne]){var n=gt(e)[go](";");ie(n,function(r){if(r=gt(r||Fe),r){var i=Zt(r,"=");i===-1?t[r]=null:t[gt(Kd(r,i))]=gt(jn(r,i+1))}})}return t}function PE(e,t){return we(e[t])?e[t]():null}function AE(e,t){var n=e||Fe;return Me(t,function(r,i){n+="; "+r+(W(i)?Fe:"="+i)}),n}function JP(e){var t=Fe;if(!nr&&yv(),nr.v){var n=nr.v[pv]||Fe;bE!==n&&(kE=RE(n),bE=n),t=gt(kE[e]||Fe)}return t}function ME(e,t){!nr&&yv(),nr.v&&(nr.v[pv]=e+"="+t)}function QP(e){return Se(e)?!!(xt(e,"CPU iPhone OS 12")||xt(e,"iPad; CPU OS 12")||xt(e,"Macintosh; Intel Mac OS X 10_14")&&xt(e,"Version/")&&xt(e,"Safari")||xt(e,"Macintosh; Intel Mac OS X 10_14")&&yy(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||xt(e,"Chrome/5")||xt(e,"Chrome/6")||xt(e,"UnrealEngine")&&!xt(e,"Chrome")||xt(e,"UCBrowser/12")||xt(e,"UCBrowser/11")):!1}var ZP={perfEvtsSendAll:!1};function eA(e){e.h=null;var t=e.cb;e.cb=[],ie(t,function(n){bt(n.fn,[n.arg])})}function di(e,t,n,r){ie(e,function(i){i&&i[t]&&(n?(n.cb[He]({fn:r,arg:i}),n.h=n.h||_n(eA,0,n)):bt(r,[i]))})}var tA=function(){function e(t){this.listeners=[];var n,r,i=[],a={h:null,cb:[]},o=gn(t,ZP);r=o[oi](function(s){n=!!s.cfg.perfEvtsSendAll}),et(e,this,function(s){Be(s,"listeners",{g:function(){return i}}),s[eu]=function(c){i[He](c)},s[Zc]=function(c){for(var u=Yt(i,c);u>-1;)i[ho](u,1),u=Yt(i,c)},s[cu]=function(c){di(i,cu,a,function(u){u[cu](c)})},s[Js]=function(c,u){di(i,Js,a,function(f){f[Js](c,u)})},s[uu]=function(c,u){di(i,uu,u?a:null,function(f){f[uu](c,u)})},s[Zi]=function(c){c&&(n||!c[Ih]())&&di(i,Zi,null,function(u){c[mo]?_n(function(){return u[Zi](c)},0):u[Zi](c)})},s[Wh]=function(c){c&&c[Ne]&&di(i,Wh,a,function(u){u[Wh](c)})},s[jh]=function(c){c&&c[yo]&&di(i,jh,a,function(u){u[jh](c)})},s[zh]=function(c,u){if(c>0){var f=u||0;di(i,zh,a,function(d){d[zh](c,f)})}},s[li]=function(c){var u=function(){r&&r.rm(),r=null,i=[],a.h&&a.h[vo](),a.h=null,a.cb=[]},f;if(di(i,"unload",null,function(d){var v=d[li](c);v&&(f||(f=[]),f[He](v))}),f)return Lr(function(d){return xr(U1(f),function(){u(),d()})});u()}})}return e.__ieDyn=1,e}(),Co="ctx",Sv="ParentContextKey",cl="ChildrenContextKey",nA=null,Cu=function(){function e(t,n,r){var i=this;if(i.start=Kn(),i[Pr]=t,i[mo]=r,i[Ih]=function(){return!1},we(n)){var a;Be(i,"payload",{g:function(){return!a&&we(n)&&(a=n(),n=null),a}})}i[Eo]=function(o){return o?o===e[Sv]||o===e[cl]?i[o]:(i[Co]||{})[o]:null},i[Qn]=function(o,s){if(o)if(o===e[Sv])i[o]||(i[Ih]=function(){return!0}),i[o]=s;else if(o===e[cl])i[o]=s;else{var c=i[Co]=i[Co]||{};c[o]=s}},i[Rh]=function(){var o=0,s=i[Eo](e[cl]);if(Ae(s))for(var c=0;c<s[Ne];c++){var u=s[c];u&&(o+=u[po])}i[po]=Kn()-i.start,i.exTime=i[po]-o,i[Rh]=function(){}}}return e.ParentContextKey="parent",e.ChildrenContextKey="childEvts",e}(),rA=function(){function e(t){this.ctx={},et(e,this,function(n){n.create=function(r,i,a){return new Cu(r,i,a)},n.fire=function(r){r&&(r[Rh](),t&&we(t[Zi])&&t[Zi](r))},n[Qn]=function(r,i){if(r){var a=n[Co]=n[Co]||{};a[r]=i}},n[Eo]=function(r){return(n[Co]||{})[r]}})}return e.__ieDyn=1,e}(),Tv="CoreUtils.doPerf";function Ou(e,t,n,r,i){if(e){var a=e;if(a[fu]&&(a=a[fu]()),a){var o=void 0,s=a[Eo](Tv);try{if(o=a.create(t(),r,i),o){if(s&&o[Qn]&&(o[Qn](Cu[Sv],s),s[Eo]&&s[Qn])){var c=s[Eo](Cu[cl]);c||(c=[],s[Qn](Cu[cl],c)),c[He](o)}return a[Qn](Tv,o),n(o)}}catch(u){o&&o[Qn]&&o[Qn]("exception",u)}finally{o&&a.fire(o),a[Qn](Tv,s)}}}return n()}function iA(){return nA}function hi(){for(var e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t=Fe,n,r=0;r<4;r++)n=rl(),t+=e[n&15]+e[n>>4&15]+e[n>>8&15]+e[n>>12&15]+e[n>>16&15]+e[n>>20&15]+e[n>>24&15]+e[n>>28&15];var i=e[8+(rl()&3)|0];return ni(t,0,8)+ni(t,9,4)+"4"+ni(t,13,3)+i+ni(t,16,3)+ni(t,19,12)}var Nv="00",aA="ff",YE="00000000000000000000000000000000",xE="0000000000000000";function ul(e,t,n){return e&&e[Ne]===t&&e!==n?!!e.match(/^[\da-f]*$/i):!1}function LE(e,t,n){return ul(e,t)?e:n}function oA(e){(isNaN(e)||e<0||e>255)&&(e=1);for(var t=e.toString(16);t[Ne]<2;)t="0"+t;return t}function VE(e,t,n,r){var i;return i={},i[ru]=ul(r,2,aA)?r:Nv,i[Ah]=Dv(e)?e:hi(),i[Mh]=wv(t)?t:Kd(hi(),16),i.traceFlags=n>=0&&n<=255?n:1,i}function Dv(e){return ul(e,32,YE)}function wv(e){return ul(e,16,xE)}function FE(e){if(e){var t=oA(e[Yh]);ul(t,2)||(t="01");var n=e[ru]||Nv;return n!=="00"&&n!=="ff"&&(n=Nv),"".concat(n.toLowerCase(),"-").concat(LE(e.traceId,32,YE).toLowerCase(),"-").concat(LE(e.spanId,16,xE).toLowerCase(),"-").concat(t.toLowerCase())}return""}function sA(e){var t=e.getElementsByTagName("script"),n=[];return ie(t,function(r){var i=r[xh]("src");if(i){var a=r[xh]("crossorigin"),o=r.hasAttribute("async")===!0,s=r.hasAttribute("defer")===!0,c=r[xh]("referrerpolicy"),u={url:i};a&&(u.crossOrigin=a),o&&(u.async=o),s&&(u.defer=s),c&&(u.referrerPolicy=c),n[He](u)}}),n}var lA=dE("plugin");function ia(e){return lA.get(e,"state",{},!0)}function $E(e,t){for(var n=[],r=null,i=e[Jn](),a;i;){var o=i[Gs]();if(o){r&&r[zs]&&o[er]&&r[zs](o),a=ia(o);var s=!!a[Xn];o[Xn]&&(s=o[Xn]()),s||n[He](o),r=o,i=i[Jn]()}}ie(n,function(c){var u=e[Nt]();c[Bs](e.getCfg(),u,t,e[Jn]()),a=ia(c),!c[Nt]&&!a[Nt]&&(a[Nt]=u),a[Xn]=!0,delete a[Ar]})}function bv(e){return e.sort(function(t,n){var r=0;if(n){var i=n[er];t[er]?r=i?t[lu]-n[lu]:1:i&&(r=-1)}else r=t?1:-1;return r})}function cA(e){var t={};return{getName:function(){return t[Pr]},setName:function(n){e&&e.setName(n),t[Pr]=n},getTraceId:function(){return t[Ah]},setTraceId:function(n){e&&e.setTraceId(n),Dv(n)&&(t[Ah]=n)},getSpanId:function(){return t[Mh]},setSpanId:function(n){e&&e.setSpanId(n),wv(n)&&(t[Mh]=n)},getTraceFlags:function(){return t[Yh]},setTraceFlags:function(n){e&&e.setTraceFlags(n),t[Yh]=n}}}var uA="TelemetryPluginChain",UE="_hasRun",BE="_getTelCtx",HE=0;function fA(e,t,n){for(;e;){if(e[Gs]()===n)return e;e=e[Jn]()}return aa([n],t.config||{},t)}function kv(e,t,n,r){var i=null,a=[];t||(t=gn({},null,n[vt])),r!==null&&(i=r?fA(e,n,r):e);var o={_next:c,ctx:{core:function(){return n},diagLog:function(){return ta(n,t.cfg)},getCfg:function(){return t.cfg},getExtCfg:f,getConfig:d,hasNext:function(){return!!i},getNext:function(){return i},setNext:function(h){i=h},iterate:v,onComplete:s}};function s(h,p){for(var _=[],m=2;m<arguments.length;m++)_[m-2]=arguments[m];h&&a[He]({func:h,self:it(p)?o.ctx:p,args:_})}function c(){var h=i;if(i=h?h[Jn]():null,!h){var p=a;p&&p[Ne]>0&&(ie(p,function(_){try{_.func.call(_.self,_.args)}catch(m){ee(n[vt],2,73,"Unexpected Exception during onComplete - "+ae(m))}}),a=[])}return h}function u(h,p){var _=null,m=t.cfg;if(m&&h){var g=m[To];!g&&p&&(g={}),m[To]=g,g=t.ref(m,To),g&&(_=g[h],!_&&p&&(_={}),g[h]=_,_=t.ref(g,h))}return _}function f(h,p){var _=u(h,!0);return p&&Me(p,function(m,g){if(W(_[m])){var E=t.cfg[m];(E||!W(E))&&(_[m]=E)}lv(t,_,m,g)}),t[fo](_,p)}function d(h,p,_){_===void 0&&(_=!1);var m,g=u(h,!1),E=t.cfg;return g&&(g[p]||!W(g[p]))?m=g[p]:(E[p]||!W(E[p]))&&(m=E[p]),m||!W(m)?m:_}function v(h){for(var p;p=o._next();){var _=p[Gs]();_&&h(_)}}return o}function Mn(e,t,n,r){var i=gn(t),a=kv(e,i,n,r),o=a.ctx;function s(u){var f=a._next();return f&&f[er](u,o),!f}function c(u,f){return u===void 0&&(u=null),Ae(u)&&(u=aa(u,i.cfg,n,f)),Mn(u||o[Jn](),i.cfg,n,f)}return o[Bt]=s,o[qi]=c,o}function Iu(e,t,n){var r=gn(t.config),i=kv(e,r,t,n),a=i.ctx;function o(c){var u=i._next();return u&&u[li](a,c),!u}function s(c,u){return c===void 0&&(c=null),Ae(c)&&(c=aa(c,r.cfg,t,u)),Iu(c||a[Jn](),t,u)}return a[Bt]=o,a[qi]=s,a}function Cv(e,t,n){var r=gn(t.config),i=kv(e,r,t,n),a=i.ctx;function o(c){return a.iterate(function(u){we(u[js])&&u[js](a,c)})}function s(c,u){return c===void 0&&(c=null),Ae(c)&&(c=aa(c,r.cfg,t,u)),Cv(c||a[Jn](),t,u)}return a[Bt]=o,a[qi]=s,a}function aa(e,t,n,r){var i=null,a=!r;if(Ae(e)&&e[Ne]>0){var o=null;ie(e,function(s){if(!a&&r===s&&(a=!0),a&&s&&we(s[er])){var c=dA(s,t,n);i||(i=c),o&&o._setNext(c),o=c}})}return r&&!i?aa([r],t,n):i}function dA(e,t,n){var r=null,i=we(e[er]),a=we(e[zs]),o;e?o=e[si]+"-"+e[lu]+"-"+HE++:o="Unknown-0-"+HE++;var s={getPlugin:function(){return e},getNext:function(){return r},processTelemetry:f,unload:d,update:v,_id:o,_setNext:function(h){r=h}};function c(){var h;return e&&we(e[BE])&&(h=e[BE]()),h||(h=Mn(s,t,n)),h}function u(h,p,_,m,g){var E=!1,C=e?e[si]:uA,P=h[UE];return P||(P=h[UE]={}),h.setNext(r),e&&Ou(h[Nt](),function(){return C+":"+_},function(){P[o]=!0;try{var V=r?r._id:Fe;V&&(P[V]=!1),E=p(h)}catch(O){var w=r?P[r._id]:!0;w&&(E=!0),(!r||!w)&&ee(h[Mr](),1,73,"Plugin ["+C+"] failed during "+_+" - "+ae(O)+", run flags: "+ae(P))}},m,g),E}function f(h,p){p=p||c();function _(m){if(!e||!i)return!1;var g=ia(e);return g[Ar]||g[Gh]?!1:(a&&e[zs](r),e[er](h,m),!0)}u(p,_,"processTelemetry",function(){return{item:h}},!h.sync)||p[Bt](h)}function d(h,p){function _(){var m=!1;if(e){var g=ia(e),E=e[Nt]||g[Nt];e&&(!E||E===h.core())&&!g[Ar]&&(g[Nt]=null,g[Ar]=!0,g[Xn]=!1,e[Ar]&&e[Ar](h,p)===!0&&(m=!0))}return m}u(h,_,"unload",function(){},p[mo])||h[Bt](p)}function v(h,p){function _(){var m=!1;if(e){var g=ia(e),E=e[Nt]||g[Nt];e&&(!E||E===h.core())&&!g[Ar]&&e[js]&&e[js](h,p)===!0&&(m=!0)}return m}u(h,_,"update",function(){},!1)||h[Bt](p)}return Cr(s)}function GE(){var e=[];function t(r){r&&e[He](r)}function n(r,i){ie(e,function(a){try{a(r,i)}catch(o){ee(r[Mr](),2,73,"Unexpected error calling unload handler - "+ae(o))}}),e=[]}return{add:t,run:n}}function WE(){var e=[];function t(r){var i=e;e=[],ie(i,function(a){try{(a.rm||a.remove).call(a)}catch(o){ee(r,2,73,"Unloading:"+ae(o))}})}function n(r){r&&lo(e,r)}return{run:t,add:n}}var Ov,vi="getPlugin",hA=(Ov={},Ov[To]={isVal:ea,v:{}},Ov),Oo=function(){function e(){var t=this,n,r,i,a,o;u(),et(e,t,function(f){f[Bs]=function(d,v,h,p){c(d,v,p),n=!0},f[Ar]=function(d,v){var h,p=f[Nt];if(!p||d&&p!==d[Nt]())return;var _,m=!1,g=d||Iu(null,p,i&&i[vi]?i[vi]():i),E=v||(h={reason:0},h[mo]=!1,h);function C(){m||(m=!0,a.run(g,v),o.run(g[Mr]()),_===!0&&g[Bt](E),u())}return!f[au]||f[au](g,E,C)!==!0?C():_=!0,_},f[js]=function(d,v){var h=f[Nt];if(!h||d&&h!==d[Nt]())return;var p,_=!1,m=d||Cv(null,h,i&&i[vi]?i[vi]():i),g=v||{reason:0};function E(){_||(_=!0,c(m.getCfg(),m.core(),m[Jn]()))}return!f._doUpdate||f._doUpdate(m,g,E)!==!0?E():p=!0,p},hu(f,"_addUnloadCb",function(){return a},"add"),hu(f,"_addHook",function(){return o},"add"),Be(f,"_unloadHooks",{g:function(){return o}})}),t[Mr]=function(f){return s(f)[Mr]()},t[Xn]=function(){return n},t.setInitialized=function(f){n=f},t[zs]=function(f){i=f},t[Bt]=function(f,d){d?d[Bt](f):i&&we(i[er])&&i[er](f,null)},t._getTelCtx=s;function s(f){f===void 0&&(f=null);var d=f;if(!d){var v=r||Mn(null,{},t[Nt]);i&&i[vi]?d=v[qi](null,i[vi]):d=v[qi](null,i)}return d}function c(f,d,v){gn(f,hA,ta(d)),!v&&d&&(v=d[Ay]()[Jn]());var h=i;i&&i[vi]&&(h=i[vi]()),t[Nt]=d,r=Mn(v,f,d,h)}function u(){n=!1,t[Nt]=null,r=null,i=null,o=WE(),a=GE()}}return e.__ieDyn=1,e}();function vA(e,t,n){var r={id:t,fn:n};lo(e,r);var i={remove:function(){ie(e,function(a,o){if(a.id===r.id)return e[ho](o,1),-1})}};return i}function pA(e,t,n){for(var r=!1,i=e[Ne],a=0;a<i;++a){var o=e[a];if(o)try{if(o.fn[Ki](null,[t])===!1){r=!0;break}}catch(s){ee(n,2,64,"Telemetry initializer failed: "+je(s),{exception:ae(s)},!0)}}return!r}var _A=function(e){Rr(t,e);function t(){var n=e.call(this)||this;n.identifier="TelemetryInitializerPlugin",n.priority=199;var r,i;a(),et(t,n,function(o,s){o.addTelemetryInitializer=function(c){return vA(i,r++,c)},o[er]=function(c,u){pA(i,c,u?u[Mr]():o[Mr]())&&o[Bt](c,u)},o[au]=function(){a()}});function a(){r=0,i=[]}return n}return t.__ieDyn=1,t}(Oo),pi,jE="Plugins must provide initialize method",mA="_notificationManager",zE="SDK is still unloading...",gA="SDK is not initialized",yA=100,EA=5e4,Iv=io((pi={cookieCfg:{}},pi[No]={rdOnly:!0,ref:!0,v:[]},pi[Qi]={rdOnly:!0,ref:!0,v:[]},pi[To]={ref:!0,v:{}},pi[Hh]=Zn,pi.loggingLevelConsole=0,pi.diagnosticLogInterval=Zn,pi));function SA(e,t){return new rA(t)}function TA(e,t,n){var r,i=[],a=[],o={};return ie(n,function(s){(W(s)||W(s[Bs]))&&on(jE);var c=s[lu],u=s[si];s&&c&&(W(o[c])?o[c]=u:na(e,"Two extensions have same priority #"+c+" - "+o[c]+", "+u)),!c||c<t?i[He](s):a[He](s)}),r={},r[Nt]=i,r[Qi]=a,r}function KE(e,t){var n=!1;return ie(t,function(r){if(r===e)return n=!0,-1}),n}function Rv(e,t,n,r){n&&Me(n,function(i,a){r&&$t(a)&&$t(t[i])&&Rv(e,t[i],a,r),r&&$t(a)&&$t(t[i])?Rv(e,t[i],a,r):e.set(t,i,a)})}function qE(e,t){var n=null,r=-1;return ie(e,function(i,a){if(i.w===t)return n=i,r=a,-1}),{i:r,l:n}}function NA(e,t){var n=qE(e,t).l;return n||(n={w:t,rm:function(){var r=qE(e,t);r.i!==-1&&e[ho](r.i,1)}},e[He](n)),n}function DA(e,t,n){ie(t,function(r){var i=pt(e,r.w,n);delete r.w,r.rm=function(){i.rm()}})}function wA(e,t,n,r){return t.add(e[oi](function(i){var a=i.cfg.disableDbgExt;a===!0&&r&&(n[Zc](r),r=null),n&&!r&&a!==!0&&(r=UP(i.cfg),n[eu](r))})),r}function bA(e){return Be({rm:function(){e.rm()}},"toJSON",{v:function(){return"aicore::onCfgChange<"+JSON.stringify(e)+">"}})}var kA=function(){function e(){var t,n,r,i,a,o,s,c,u,f,d,v,h,p,_,m,g,E,C,P,V,w,O,K,$,R,Y,Q,q,y,A,B;et(e,this,function(S){I(),S._getDbgPlgTargets=function(){return[O,i]},S[Xn]=function(){return n},S.activeStatus=function(){return R},S._setPendingStatus=function(){R=3},S[Bs]=function(x,te,re,ve){h&&on(zE),S[Xn]()&&on("Core cannot be initialized more than once"),t=gn(x,Iv,re||S[vt],!1),x=t.cfg,pe(t[oi](function($e){var M=$e.cfg,F=R===3;if(!F){Q=M.initInMemoMaxSize||yA;var j=M[Py],G=M.endpointUrl;if(W(j)){V=null,R=ai[bh];var Z="Please provide instrumentation key";n?(ee(r,1,100,Z),ce()):on(Z);return}var he=[];if(Wi(j)?(he[He](j),V=null):V=j,Wi(G)?(he[He](G),Y=null):Y=G,he[Ne]){q=!1,R=3;var ye=ea(M.initTimeOut)?M.initTimeOut:EA,ke=B1(he);_n(function(){q||U()},ye),xr(ke,function(Ie){try{if(q)return;if(!Ie.rejected){var Ke=Ie[Hs];if(Ke&&Ke[Ne]){var St=Ke[0];if(V=St&&St[Hs],Ke[Ne]>1){var Nn=Ke[1];Y=Nn&&Nn[Hs]}}V&&(x[Py]=V,x.endpointUrl=Y)}U()}catch{q||U()}})}else U();var Ee=$e.ref($e.cfg,To);Me(Ee,function(Ie){$e.ref(Ee,Ie)})}})),a=ve,C=wA(t,E,a&&S[tu](),C),ue(),S[vt]=re;var _e=x[No];if(f=[],f[He].apply(f,Oy(Oy([],te,!1),_e)),d=x[Qi],J(null),(!v||v[Ne]===0)&&on("No "+Qi+" available"),d&&d[Ne]>1){var Xe=S[Gs]("TeeChannelController");(!Xe||!Xe.plugin)&&ee(r,1,28,"TeeChannel required")}DA(x,w,r),w=null,n=!0,R===ai.ACTIVE&&ce()},S.getChannels=function(){var x=[];return v&&ie(v,function(te){x[He](te)}),Cr(x)},S.track=function(x){Ou(S[fu](),function(){return"AppInsightsCore:track"},function(){x===null&&(fe(x),on("Invalid telemetry item")),!x[Pr]&&W(x[Pr])&&(fe(x),on("telemetry name required")),x[Ws]=x[Ws]||V,x[po]=x[po]||Do(new Date),x.ver=x.ver||"4.0",!h&&S[Xn]()&&R===ai.ACTIVE?T()[Bt](x):R!==ai[bh]&&i[Ne]<=Q&&i[He](x)},function(){return{item:x}},!x.sync)},S[Ay]=T,S[tu]=function(){return a||(a=new tA(t.cfg),S[mA]=a),a},S[eu]=function(x){S.getNotifyMgr()[eu](x)},S[Zc]=function(x){a&&a[Zc](x)},S.getCookieMgr=function(){return c||(c=ll(t.cfg,S[vt])),c},S.setCookieMgr=function(x){c!==x&&(bo(c,!1),c=x)},S[fu]=function(){return o||s||iA()},S.setPerfMgr=function(x){o=x},S.eventCnt=function(){return i[Ne]},S.releaseQueue=function(){if(n&&i[Ne]>0){var x=i;i=[],R===2?ie(x,function(te){te[Ws]=te[Ws]||V,T()[Bt](te)}):ee(r,2,20,"core init status is not active")}},S[My]=function(x){return _=x||null,B=!1,y&&y[vo](),N(!0)};function U(){q=!0,W(V)?(R=ai[bh],ee(r,1,112,"ikey can't be resolved from promises")):R=ai.ACTIVE,ce()}function ce(){n&&(S.releaseQueue(),S[My]())}function N(x){if((!y||!y[_o])&&!B){var te=x||r&&r.queue[Ne]>0;te&&(A||(A=!0,pe(t[oi](function(re){var ve=re.cfg.diagnosticLogInterval;(!ve||!(ve>0))&&(ve=1e4);var _e=!1;y&&(_e=y[_o],y[vo]()),y=m1(H,ve),y.unref(),y[_o]=_e}))),y[_o]=!0)}return y}S[Yy]=function(){B=!0,y&&y[vo](),H()},Qs(S,function(){return p},["addTelemetryInitializer"]),S[li]=function(x,te,re){var ve;x===void 0&&(x=!0),n||on(gA),h&&on(zE);var _e=(ve={reason:50},ve[mo]=x,ve.flushComplete=!1,ve),Xe;x&&!te&&(Xe=Lr(function(F){te=F}));var $e=Iu(ge(),S);$e[nu](function(){E.run(S[vt]),mE([c,a,r],x,function(){I(),te&&te(_e)})},S);function M(F){_e.flushComplete=F,h=!0,g.run($e,_e),S[Yy](),$e[Bt](_e)}return H(),X(x,M,6,re),Xe},S[Gs]=de,S.addPlugin=function(x,te,re,ve){if(!x){ve&&ve(!1),ze(jE);return}var _e=de(x[si]);if(_e&&!te){ve&&ve(!1),ze("Plugin ["+x[si]+"] is already loaded!");return}var Xe={reason:16};function $e(j){f[He](x),Xe.added=[x],J(Xe),ve&&ve(!0)}if(_e){var M=[_e.plugin],F={reason:2,isAsync:!!re};b(M,F,function(j){j?(Xe.removed=M,Xe.reason|=32,$e()):ve&&ve(!1)})}else $e()},S.updateCfg=function(x,te){te===void 0&&(te=!0);var re;if(S[Xn]()){re={reason:1,cfg:t.cfg,oldCfg:_y({},t.cfg),newConfig:_y({},x),merge:te},x=re.newConfig;var ve=t.cfg;x[No]=ve[No],x[Qi]=ve[Qi]}t._block(function(_e){var Xe=_e.cfg;Rv(_e,Xe,x,te),te||Me(Xe,function($e){ti(x,$e)||_e.set(Xe,$e,Zn)}),_e[fo](Xe,Iv)},!0),t[Jc](),re&&be(re)},S.evtNamespace=function(){return m},S.flush=X,S.getTraceCtx=function(x){return P||(P=cA()),P},S.setTraceCtx=function(x){P=x||null},S.addUnloadHook=pe,hu(S,"addUnloadCb",function(){return g},"add"),S.onCfgChange=function(x){var te;return n?te=pt(t.cfg,x,S[vt]):te=NA(w,x),bA(te)},S.getWParam=function(){return ay()||t.cfg.enableWParam?0:-1};function k(){var x={};K=[];var te=function(re){re&&ie(re,function(ve){if(ve[si]&&ve[ru]&&!x[ve.identifier]){var _e=ve[si]+"="+ve[ru];K[He](_e),x[ve.identifier]=ve}})};te(v),d&&ie(d,function(re){te(re)}),te(f)}function I(){n=!1,t=gn({},Iv,S[vt]),t.cfg[xy]=1,Be(S,"config",{g:function(){return t.cfg},s:function(te){S.updateCfg(te,!1)}}),Be(S,"pluginVersionStringArr",{g:function(){return K||k(),K}}),Be(S,"pluginVersionString",{g:function(){return $||(K||k(),$=K.join(";")),$||Fe}}),Be(S,"logger",{g:function(){return r||(r=new Du(t.cfg),t[vt]=r),r},s:function(te){t[vt]=te,r!==te&&(bo(r,!1),r=te)}}),S[vt]=new Du(t.cfg),O=[];var x=S.config[No]||[];x.splice(0,x[Ne]),lo(x,O),p=new _A,i=[],bo(a,!1),a=null,o=null,s=null,bo(c,!1),c=null,u=null,f=[],d=null,v=null,h=!1,_=null,m=mn("AIBaseCore",!0),g=GE(),P=null,V=null,E=WE(),w=[],$=null,K=null,B=!1,y=null,A=!1,R=0,Y=null,Q=null,q=!1}function T(){var x=Mn(ge(),t.cfg,S);return x[nu](N),x}function J(x){var te=TA(S[vt],xP,f);u=null,$=null,K=null,v=(d||[])[0]||[],v=bv(lo(v,te[Qi]));var re=lo(bv(te[Nt]),v);O=Cr(re);var ve=S.config[No]||[];ve.splice(0,ve[Ne]),lo(ve,O);var _e=T();v&&v[Ne]>0&&$E(_e[qi](v),re),$E(_e,re),x&&be(x)}function de(x){var te=null,re=null,ve=[];return ie(O,function(_e){if(_e[si]===x&&_e!==p)return re=_e,-1;_e.getChannel&&ve[He](_e)}),!re&&ve[Ne]>0&&ie(ve,function(_e){if(re=_e.getChannel(x),!re)return-1}),re&&(te={plugin:re,setEnabled:function(_e){ia(re)[Gh]=!_e},isEnabled:function(){var _e=ia(re);return!_e[Ar]&&!_e[Gh]},remove:function(_e,Xe){var $e;_e===void 0&&(_e=!0);var M=[re],F=($e={reason:1},$e[mo]=_e,$e);b(M,F,function(j){j&&J({reason:32,removed:M}),Xe&&Xe(j)})}}),te}function ge(){if(!u){var x=(O||[]).slice();Yt(x,p)===-1&&x[He](p),u=aa(bv(x),t.cfg,S)}return u}function b(x,te,re){if(x&&x[Ne]>0){var ve=aa(x,t.cfg,S),_e=Iu(ve,S);_e[nu](function(){var Xe=!1,$e=[];ie(f,function(F,j){KE(F,x)?Xe=!0:$e[He](F)}),f=$e,$=null,K=null;var M=[];d&&(ie(d,function(F,j){var G=[];ie(F,function(Z){KE(Z,x)?Xe=!0:G[He](Z)}),M[He](G)}),d=M),re&&re(Xe),N()}),_e[Bt](te)}else re(!1)}function H(){if(r&&r.queue){var x=r.queue.slice(0);r.queue[Ne]=0,ie(x,function(te){var re,ve=(re={},re[Pr]=_||"InternalMessageId: "+te[iu],re[Ws]=V,re[po]=Do(new Date),re.baseType=sl.dataType,re.baseData={message:te[Xi]},re);S.track(ve)})}}function X(x,te,re,ve){var _e=1,Xe=!1,$e=null;ve=ve||5e3;function M(){_e--,Xe&&_e===0&&($e&&$e[vo](),$e=null,te&&te(Xe),te=null)}if(v&&v[Ne]>0){var F=T()[qi](v);F.iterate(function(j){if(j.flush){_e++;var G=!1;j.flush(x,function(){G=!0,M()},re)||G||(x&&$e==null?$e=_n(function(){$e=null,M()},ve):M())}})}return Xe=!0,M(),!0}function ue(){var x;pe(t[oi](function(te){var re=te.cfg.enablePerfMgr;if(re){var ve=te.cfg[Hh];x!==ve&&(ve||(ve=SA),Ht(te.cfg,Hh,ve),x=ve,s=null),!o&&!s&&we(ve)&&(s=ve(S,S[tu]()))}else s=null,x=null}))}function be(x){var te=Cv(ge(),S);te[nu](N),(!S._updateHook||S._updateHook(te,x)!==!0)&&te[Bt](x)}function ze(x){var te=S[vt];te?(ee(te,2,73,x),N()):on(x)}function fe(x){var te=S[tu]();te&&te[Js]([x],2)}function pe(x){E.add(x)}})}return e.__ieDyn=1,e}();function Pv(e,t){try{if(e&&e!==""){var n=Pn().parse(e);if(n&&n[Uy]&&n[Uy]>=n.itemsAccepted&&n.itemsReceived-n.itemsAccepted===n.errors[Ne])return n}}catch(r){ee(t,1,43,"Cannot parse the response. "+(r[Pr]||ae(r)),{response:e})}return null}var rr="",CA="NoResponseBody",XE="&"+CA+"=true",Av="POST",OA=function(){function e(){var t=0,n,r,i,a,o,s,c,u,f,d,v,h,p,_;et(e,this,function(m,g){var E=!0;q(),m[Bs]=function(y,A){i=A,r&&ee(i,1,28,"Sender is already initialized"),m.SetConfig(y),r=!0},m._getDbgPlgTargets=function(){return[r,a,s,n]},m.SetConfig=function(y){try{if(o=y.senderOnCompleteCallBack||{},s=!!y.disableCredentials,c=y.fetchCredentials,a=!!y.isOneDs,n=!!y.enableSendPromise,f=!!y.disableXhr,d=!!y.disableBeacon,v=!!y.disableBeaconSync,_=y.timeWrapper,p=!!y.addNoResponse,h=!!y.disableFetchKeepAlive,u={sendPOST:R},a||(E=!1),s){var A=tr();A&&A.protocol&&A.protocol[uo]()==="file:"&&(E=!1)}return!0}catch{}return!1},m.getSyncFetchPayload=function(){return t},m.getSenderInst=function(y,A){return y&&y[Ne]?w(y,A):null},m.getFallbackInst=function(){return u},m[au]=function(y,A){q()};function C(y,A){O(A,200,{},y)}function P(y,A){ee(i,2,26,"Failed to send telemetry.",{message:y}),O(A,400,{})}function V(y){P("No endpoint url is provided for the batch",y)}function w(y,A){for(var B,S=0,U=null,ce=0;U==null&&ce<y[Ne];)S=y[ce],!f&&S===1?pP()?U=Q:_u()&&(U=R):S===2&&av(A)&&(!A||!h)?U=Y:S===3&&el()&&(A?!v:!d)&&(U=$),ce++;return U?(B={_transport:S,_isSync:A},B[By]=U,B):null}function O(y,A,B,S){try{y&&y(A,B,S)}catch{}}function K(y,A){var B=zn(),S=y[qs];if(!S)return V(A),!0;S=y[qs]+(p?XE:rr);var U=y[yo],ce=a?U:new Blob([U],{type:"text/plain;charset=UTF-8"}),N=B.sendBeacon(S,ce);return N}function $(y,A,B){var S=y[yo];try{if(S)if(K(y,A))C(rr,A);else{var U=o&&o.beaconOnRetry;U&&we(U)?U(y,A,K):(u&&u[By](y,A,!0),ee(i,2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}catch(ce){a&&na(i,"Failed to send telemetry using sendBeacon API. Ex:"+ae(ce)),O(A,a?0:400,{},rr)}}function R(y,A,B){var S,U,ce,N=y[Ph]||{};!B&&n&&(S=Lr(function(J,de){U=J,ce=de})),a&&B&&y.disableXhrSync&&(B=!1);var k=y[qs];if(!k){V(A),U&&U(!1);return}var I=Z1(Av,k,E,!0,B,y[So]);a||I[Hy]("Content-type","application/json"),ie(kr(N),function(J){I[Hy](J,N[J])}),I.onreadystatechange=function(){a||(T(I),I.readyState===4&&U&&U(!0))},I.onload=function(){a&&T(I)};function T(J){var de=o&&o.xhrOnComplete,ge=de&&we(de);if(ge)de(J,A,y);else{var b=vu(J);O(A,J[Ks],Qh(J,a),b)}}return I.onerror=function(J){O(A,a?I[Ks]:400,Qh(I,a),a?rr:pu(I)),ce&&ce(J)},I.ontimeout=function(){O(A,a?I[Ks]:500,Qh(I,a),a?rr:pu(I)),U&&U(!1)},I.send(y[yo]),S}function Y(y,A,B){var S,U=y[qs],ce=y[yo],N=a?ce:new Blob([ce],{type:"application/json"}),k,I,T,J=new Headers,de=ce[Ne],ge=!1,b=!1,H=y[Ph]||{},X=(S={method:Av,body:N},S[gE]=!0,S);y.headers&&kr(y.headers)[Ne]>0&&(ie(kr(H),function(fe){J.append(fe,H[fe])}),X[Ph]=J),c?X.credentials=c:E&&a&&(X.credentials="include"),B&&(X.keepalive=!0,t+=de,a?y._sendReason===2&&(ge=!0,p&&(U+=XE)):ge=!0);var ue=new Request(U,X);try{ue[gE]=!0}catch{}if(!B&&n&&(k=Lr(function(fe,pe){I=fe,T=pe})),!U){V(A),I&&I(!1);return}function be(fe){O(A,a?0:400,{},a?rr:fe)}function ze(fe,pe,x){var te=fe[Ks],re=o.fetchOnComplete;re&&we(re)?re(fe,A,x||rr,pe):O(A,te,{},x||rr)}try{xr(fetch(a?U:ue,a?X:null),function(fe){if(B&&(t-=de,de=0),!b)if(b=!0,fe.rejected)be(fe.reason&&fe.reason[Xi]),T&&T(fe.reason);else{var pe=fe[Hs];try{!a&&!pe.ok?(be(pe.statusText),I&&I(!1)):a&&!pe.body?(ze(pe,null,rr),I&&I(!0)):xr(pe.text(),function(x){ze(pe,y,x[Hs]),I&&I(!0)})}catch(x){be(ae(x)),T&&T(x)}}})}catch(fe){b||(be(ae(fe)),T&&T(fe))}return ge&&!b&&(b=!0,O(A,200,{}),I&&I(!0)),a&&!b&&y[So]>0&&_&&_.set(function(){b||(b=!0,O(A,500,{}),I&&I(!0))},y[So]),k}function Q(y,A,B){var S=Qt(),U=new XDomainRequest,ce=y[yo];U.onload=function(){var J=vu(U),de=o&&o.xdrOnComplete;de&&we(de)?de(U,A,y):O(A,200,{},J)},U.onerror=function(){O(A,400,{},a?rr:Zy(U))},U.ontimeout=function(){O(A,500,{})},U.onprogress=function(){};var N=S&&S.location&&S.location[Ly]||"",k=y[qs];if(!k){V(A);return}if(!a&&k.lastIndexOf(N,0)!==0){var I="Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol.";ee(i,2,40,". "+I),P(I,A);return}var T=a?k:k[Ji](/^(https?:)/,"");U.open(Av,T),y[So]&&(U[So]=y[So]),U.send(ce),a&&B?_&&_.set(function(){U.send(ce)},0):U.send(ce)}function q(){t=0,r=!1,n=!1,i=null,a=null,o=null,s=null,c=null,u=null,f=!1,d=!1,v=!1,h=!1,p=!1,_=null}})}return e.__ieDyn=1,e}(),JE="on",QE="attachEvent",ZE="addEventListener",eS="detachEvent",tS="removeEventListener",Mv="events",Yv="visibilitychange",Ru="pagehide",nS="unload",rS="beforeunload",iS=mn("aiEvtPageHide");mn("aiEvtPageShow");var IA=/\.[\.]+/g,RA=/[\.]+$/,PA=1,Pu=dE("events"),AA=/^([^.]*)(?:\.(.+)|)/;function aS(e){return e&&e[Ji]?e[Ji](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,Fe):e}function xv(e,t){var n;if(t){var r=Fe;Ae(t)?(r=Fe,ie(t,function(a){a=aS(a),a&&(a[0]!=="."&&(a="."+a),r+=a)})):r=aS(t),r&&(r[0]!=="."&&(r="."+r),e=(e||Fe)+r)}var i=AA.exec(e||Fe)||[];return n={},n[Yr]=i[1],n.ns=(i[2]||Fe).replace(IA,".").replace(RA,Fe)[go](".").sort().join("."),n}function oS(e,t,n){n===void 0&&(n=!0);var r=Pu.get(e,Mv,{},n),i=r[t];return i||(i=r[t]=[]),i}function sS(e,t,n,r){e&&t&&t[Yr]&&(e[tS]?e[tS](t[Yr],n,r):e[eS]&&e[eS](JE+t[Yr],n))}function MA(e,t,n,r){var i=!1;return e&&t&&t[Yr]&&n&&(e[ZE]?(e[ZE](t[Yr],n,r),i=!0):e[QE]&&(e[QE](JE+t[Yr],n),i=!0)),i}function lS(e,t,n,r){for(var i=t[Ne];i--;){var a=t[i];a&&(!n.ns||n.ns===a.evtName.ns)&&(!r||r(a))&&(sS(e,a.evtName,a[Oh],a.capture),t[ho](i,1))}}function YA(e,t,n){if(t[Yr])lS(e,oS(e,t[Yr]),t,n);else{var r=Pu.get(e,Mv,{});Me(r,function(i,a){lS(e,a,t,n)}),kr(r)[Ne]===0&&Pu.kill(e,Mv)}}function _i(e,t){var n;return t?(Ae(t)?n=[e].concat(t):n=[e,t],n=xv("xx",n).ns[go](".")):n=e,n}function Vr(e,t,n,r,i){var a;i===void 0&&(i=!1);var o=!1;if(e)try{var s=xv(t,r);if(o=MA(e,s,n,i),o&&Pu.accept(e)){var c=(a={guid:PA++,evtName:s},a[Oh]=n,a.capture=i,a);oS(e,s.type)[He](c)}}catch{}return o}function Io(e,t,n,r,i){if(i===void 0&&(i=!1),e)try{var a=xv(t,r),o=!1;YA(e,a,function(s){return a.ns&&!n||s[Oh]===n?(o=!0,!0):!1}),o||sS(e,a,n,i)}catch{}}function xA(e,t,n){var r=!1,i=Qt();i&&(r=Vr(i,e,t,n),r=Vr(i.body,e,t,n)||r);var a=Ot();return a&&(r=Vr(a,e,t,n)||r),r}function LA(e,t,n){var r=Qt();r&&(Io(r,e,t,n),Io(r.body,e,t,n));var i=Ot();i&&Io(i,e,t,n)}function Au(e,t,n,r){var i=!1;return t&&e&&e[Ne]>0&&ie(e,function(a){a&&(!n||Yt(n,a)===-1)&&(i=xA(a,t,r)||i)}),i}function VA(e,t,n,r){var i=!1;return t&&e&&Ae(e)&&(i=Au(e,t,n,r),!i&&n&&n[Ne]>0&&(i=Au(e,t,null,r))),i}function Lv(e,t,n){e&&Ae(e)&&ie(e,function(r){r&&LA(r,t,n)})}function FA(e,t,n){return VA([rS,nS,Ru],e,t,n)}function $A(e,t){Lv([rS,nS,Ru],e,t)}function Vv(e,t,n){function r(o){var s=Ot();e&&s&&s.visibilityState==="hidden"&&e(o)}var i=_i(iS,n),a=Au([Ru],e,t,i);return(!t||Yt(t,Yv)===-1)&&(a=Au([Yv],r,t,i)||a),!a&&t&&(a=Vv(e,null,n)),a}function UA(e,t){var n=_i(iS,t);Lv([Ru],e,n),Lv([Yv],null,n)}var cS="_aiHooks",uS=["req","rsp","hkErr","fnErr"];function Fv(e,t){if(e)for(var n=0;n<e[Ne]&&!t(e[n],n);n++);}function $v(e,t,n,r,i){i>=0&&i<=2&&Fv(e,function(a,o){var s=a.cbks,c=s[uS[i]];if(c){t.ctx=function(){var d=r[o]=r[o]||{};return d};try{c[Ki](t.inst,n)}catch(d){var u=t.err;try{var f=s[uS[2]];f&&(t.err=d,f[Ki](t.inst,n))}catch{}finally{t.err=u}}}})}function BA(e){return function(){var t,n=this,r=arguments,i=e.h,a=(t={},t[Pr]=e.n,t.inst=n,t.ctx=null,t.set=u,t),o=[],s=c([a],r);a.evt=ct("event");function c(d,v){return Fv(v,function(h){d[He](h)}),d}function u(d,v){r=c([],r),r[d]=v,s=c([a],r)}$v(i,a,s,o,0);var f=e.f;if(f)try{a.rslt=f[Ki](n,r)}catch(d){throw a.err=d,$v(i,a,s,o,3),d}return $v(i,a,s,o,1),a.rslt}}function Uv(e,t,n,r){var i=null;return e&&(hn(e,t)?i=e:n&&(i=Uv(K1(e),t,r,!1))),i}function HA(e,t,n){return e?Bv(e[qn],t,n,!1):null}function fS(e,t,n,r){var i=n&&n[cS];if(!i){i={i:0,n:t,f:n,h:[]};var a=BA(i);a[cS]=i,e[t]=a}var o={id:i.i,cbks:r,rm:function(){var s=this.id;Fv(i.h,function(c,u){if(c.id===s)return i.h[ho](u,1),1})}};return i.i++,i.h[He](o),o}function Bv(e,t,n,r,i){if(r===void 0&&(r=!0),e&&t&&n){var a=Uv(e,t,r,i);if(a){var o=a[t];if(typeof o===by)return fS(a,t,o,n)}}return null}function Mu(e,t,n,r,i){if(e&&t&&n){var a=Uv(e,t,r,i)||e;if(a)return fS(a,t,a[t],n)}return null}var Yu="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",dS="sampleRate",Hv="ProcessLegacy",hS="http.method",Gv="https://dc.services.visualstudio.com",Ro="/v2/track",ir="not_specified",Wv="iKey",Qe=k1({requestContextHeader:[0,"Request-Context"],requestContextTargetKey:[1,"appId"],requestContextAppIdFormat:[2,"appId=cid-v1:"],requestIdHeader:[3,"Request-Id"],traceParentHeader:[4,"traceparent"],traceStateHeader:[5,"tracestate"],sdkContextHeader:[6,"Sdk-Context"],sdkContextHeaderAppIdRequest:[7,"appId"],requestContextHeaderLowerCase:[8,"request-context"]}),Po="split",Ce="length",fl="toLowerCase",oa="ingestionendpoint",Ao="toString",xu="push",jv="removeItem",Yn="name",mi="message",Mo="count",zv="preTriggerDate",Kv="disabled",qv="interval",vS="daysOfMonth",Xv="date",Jv="getUTCDate",Lu="stringify",Qv="pathname",pS="correlationHeaderExcludePatterns",Yo="exceptions",xn="parsedStack",ar="properties",Fr="measurements",xo="sizeInBytes",$r="typeName",dl="severityLevel",Zv="problemGroup",ep="isManual",_S="CreateFromInterface",Lo="assembly",sa="fileName",Vu="hasFullStack",Fu="level",Vo="method",hl="line",$u="duration",mS="receivedResponse";function gS(e,t,n){var r=t[Ce],i=GA(e,t);if(i[Ce]!==r){for(var a=0,o=i;n[o]!==void 0;)a++,o=jn(i,0,147)+zA(a);i=o}return i}function GA(e,t){var n;return t&&(t=gt(Jt(t)),t[Ce]>150&&(n=jn(t,0,150),ee(e,2,57,"name is too long. It has been truncated to 150 characters.",{name:t},!0))),n||t}function Et(e,t,n){n===void 0&&(n=1024);var r;return t&&(n=n||1024,t=gt(Jt(t)),t[Ce]>n&&(r=jn(t,0,n),ee(e,2,61,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),r||t}function Uu(e,t){return ES(e,t,2048,66)}function yS(e,t){var n;return t&&t[Ce]>32768&&(n=jn(t,0,32768),ee(e,2,56,"message is too long, it has been truncated to 32768 characters.",{message:t},!0)),n||t}function WA(e,t){var n;if(t){var r=""+t;r[Ce]>32768&&(n=jn(r,0,32768),ee(e,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:t},!0))}return n||t}function la(e,t){if(t){var n={};Me(t,function(r,i){if(Xt(i)&&Zs())try{i=Pn()[Lu](i)}catch(a){ee(e,2,49,"custom property is not valid",{exception:a},!0)}i=Et(e,i,8192),r=gS(e,r,n),n[r]=i}),t=n}return t}function ca(e,t){if(t){var n={};Me(t,function(r,i){r=gS(e,r,n),n[r]=i}),t=n}return t}function jA(e,t){return t&&ES(e,t,128,69)[Ao]()}function ES(e,t,n,r){var i;return t&&(t=gt(Jt(t)),t[Ce]>n&&(i=jn(t,0,n),ee(e,2,r,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0))),i||t}function zA(e){var t="00"+e;return ni(t,t[Ce]-3)}var SS=Ot()||{},TS=0,KA=[null,null,null,null,null];function tp(e){var t=TS,n=KA,r=n[t];return SS.createElement?n[t]||(r=n[t]=SS.createElement("a")):r={host:JA(e,!0)},r.href=e,t++,t>=n[Ce]&&(t=0),TS=t,r}function qA(e){var t,n=tp(e);return n&&(t=n.href),t}function XA(e,t){return e?e.toUpperCase()+" "+t:t}function JA(e,t){var n=NS(e,t)||"";if(n){var r=n.match(/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(r!=null&&r[Ce]>3&&Se(r[2])&&r[2][Ce]>0)return r[2]+(r[3]||"")}return n}function NS(e,t){var n=null;if(e){var r=e.match(/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);if(r!=null&&r[Ce]>2&&Se(r[2])&&r[2][Ce]>0&&(n=r[2]||"",t&&r[Ce]>2)){var i=(r[1]||"")[fl](),a=r[3]||"";(i==="http"&&a===":80"||i==="https"&&a===":443")&&(a=""),n+=a}}return n}var QA=[Gv+Ro,"https://breeze.aimon.applicationinsights.io"+Ro,"https://dc-int.services.visualstudio.com"+Ro],ZA="cid-v1:";function np(e){return Yt(QA,e[fl]())!==-1}function DS(e,t,n){if(!t||e&&e.disableCorrelationHeaders)return!1;if(e&&e[pS]){for(var r=0;r<e.correlationHeaderExcludePatterns[Ce];r++)if(e[pS][r].test(t))return!1}var i=tp(t).host[fl]();if(i&&(Zt(i,":443")!==-1||Zt(i,":80")!==-1)&&(i=(NS(t,!0)||"")[fl]()),(!e||!e.enableCorsCorrelation)&&i&&i!==n)return!1;var a=e&&e.correlationHeaderDomains;if(a){var o;if(ie(a,function(u){var f=new RegExp(u.toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*"));o=o||f.test(i)}),!o)return!1}var s=e&&e.correlationHeaderExcludedDomains;if(!s||s[Ce]===0)return!0;for(var r=0;r<s[Ce];r++){var c=new RegExp(s[r].toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*"));if(c.test(i))return!1}return i&&i[Ce]>0}function wS(e){if(e){var t=eM(e,Qe[1]);if(t&&t!==ZA)return t}}function eM(e,t){if(e)for(var n=e[Po](","),r=0;r<n[Ce];++r){var i=n[r][Po]("=");if(i[Ce]===2&&i[0]===t)return i[1]}}function tM(e,t,n,r){var i,a=r,o=r;if(t&&t[Ce]>0){var s=tp(t);if(i=s.host,!a)if(s[Qv]!=null){var c=s.pathname[Ce]===0?"/":s[Qv];c.charAt(0)!=="/"&&(c="/"+c),o=s[Qv],a=Et(e,n?n+" "+c:c)}else a=Et(e,t)}else i=r,a=r;return{target:i,name:a,data:o}}function Bu(){var e=Or();if(e&&e.now&&e.timing){var t=e.now()+e.timing.navigationStart;if(t>0)return t}return Kn()}function en(e,t){var n=null;return e!==0&&t!==0&&!W(e)&&!W(t)&&(n=t-e),n}function rp(e,t){var n=e||{};return{getName:function(){return n[Yn]},setName:function(r){t&&t.setName(r),n[Yn]=r},getTraceId:function(){return n.traceID},setTraceId:function(r){t&&t.setTraceId(r),Dv(r)&&(n.traceID=r)},getSpanId:function(){return n.parentID},setSpanId:function(r){t&&t.setSpanId(r),wv(r)&&(n.parentID=r)},getTraceFlags:function(){return n.traceFlags},setTraceFlags:function(r){t&&t.setTraceFlags(r),n.traceFlags=r}}}var vl=Iy({LocalStorage:0,SessionStorage:1}),gi=void 0,yi=void 0,bS="";function ip(){return Gu()?Hu(vl.LocalStorage):null}function Hu(e){try{if(W(pn()))return null;var t=new Date()[Ao](),n=ct(e===vl.LocalStorage?"localStorage":"sessionStorage"),r=bS+t;n.setItem(r,t);var i=n.getItem(r)!==t;if(n[jv](r),!i)return n}catch{}return null}function ap(){return pl()?Hu(vl.SessionStorage):null}function nM(){gi=!1,yi=!1}function op(e){bS=e||""}function rM(){gi=Gu(!0),yi=pl(!0)}function Gu(e){return(e||gi===void 0)&&(gi=!!Hu(vl.LocalStorage)),gi}function kS(e,t){var n=ip();if(n!==null)try{return n.getItem(t)}catch(r){gi=!1,ee(e,2,1,"Browser failed read of local storage. "+je(r),{exception:ae(r)})}return null}function CS(e,t,n){var r=ip();if(r!==null)try{return r.setItem(t,n),!0}catch(i){gi=!1,ee(e,2,3,"Browser failed write to local storage. "+je(i),{exception:ae(i)})}return!1}function iM(e,t){var n=ip();if(n!==null)try{return n[jv](t),!0}catch(r){gi=!1,ee(e,2,5,"Browser failed removal of local storage item. "+je(r),{exception:ae(r)})}return!1}function pl(e){return(e||yi===void 0)&&(yi=!!Hu(vl.SessionStorage)),yi}function sp(e,t){var n=ap();if(n!==null)try{return n.getItem(t)}catch(r){yi=!1,ee(e,2,2,"Browser failed read of session storage. "+je(r),{exception:ae(r)})}return null}function OS(e,t,n){var r=ap();if(r!==null)try{return r.setItem(t,n),!0}catch(i){yi=!1,ee(e,2,4,"Browser failed write to session storage. "+je(i),{exception:ae(i)})}return!1}function IS(e,t){var n=ap();if(n!==null)try{return n[jv](t),!0}catch(r){yi=!1,ee(e,2,6,"Browser failed removal of session storage item. "+je(r),{exception:ae(r)})}return!1}var aM="appInsightsThrottle",oM=function(){function e(t,n){var r=this,i,a,o,s,c,u,f,d=!1,v=!1;p(),r._getDbgPlgTargets=function(){return[f]},r.getConfig=function(){return o},r.canThrottle=function(y){var A=Y(y),B=_(y);return E(B,i,A)},r.isTriggered=function(y){return Q(y)},r.isReady=function(){return d},r.flush=function(y){try{var A=q(y);if(A&&A[Ce]>0){var B=A.slice(0);return f[y]=[],ie(B,function(S){h(S.msgID,S[mi],S.severity,!1)}),!0}}catch{}return!1},r.flushAll=function(){try{if(f){var y=!0;return Me(f,function(A){var B=r.flush(parseInt(A));y=y&&B}),y}}catch{}return!1},r.onReadyState=function(y,A){return A===void 0&&(A=!0),d=W(y)?!0:y,d&&A?r.flushAll():null},r.sendMessage=function(y,A,B){return h(y,A,B,!0)};function h(y,A,B,S){if(d){var U=R(y);if(!U)return;var ce=_(y),N=Y(y),k=E(ce,i,N),I=!1,T=0,J=Q(y);try{k&&!J?(T=Math.min(ce.limit.maxSendNumber,N[Mo]+1),N[Mo]=0,I=!0,c[y]=!0,N[zv]=new Date):(c[y]=k,N[Mo]+=1);var de=C(y);O(a,de,N);for(var ge=0;ge<T;ge++)$(y,a,A,B)}catch{}return{isThrottled:I,throttleNum:T}}else if(S){var b=q(y);b[xu]({msgID:y,message:A,severity:B})}return null}function p(){a=ta(t),c={},s={},f={},o={},m(109),u=ea(n)?n:"",t.addUnloadHook(pt(t.config,function(y){var A=y.cfg;i=Gu();var B=A.throttleMgrCfg||{};Me(B,function(S,U){m(parseInt(S),U)})}))}function _(y){return o[y]||o[109]}function m(y,A){var B,S;try{var U=A||{},ce={};ce[Kv]=!!U[Kv];var N=U[qv]||{};v=(N==null?void 0:N.daysOfMonth)&&(N==null?void 0:N.daysOfMonth[Ce])>0,ce[qv]=g(N);var k={samplingRate:((B=U.limit)===null||B===void 0?void 0:B.samplingRate)||100,maxSendNumber:((S=U.limit)===null||S===void 0?void 0:S.maxSendNumber)||1};ce.limit=k,o[y]=ce}catch{}}function g(y){y=y||{};var A=y==null?void 0:y.monthInterval,B=y==null?void 0:y.dayInterval;return W(A)&&W(B)&&(y.monthInterval=3,v||(y[vS]=[28],v=!0)),y={monthInterval:y==null?void 0:y.monthInterval,dayInterval:y==null?void 0:y.dayInterval,daysOfMonth:y==null?void 0:y.daysOfMonth},y}function E(y,A,B){if(y&&!y[Kv]&&A&&ea(B)){var S=w(),U=B[Xv],ce=y[qv],N=1;if(ce!=null&&ce.monthInterval){var k=(S.getUTCFullYear()-U.getUTCFullYear())*12+S.getUTCMonth()-U.getUTCMonth();N=K(ce.monthInterval,0,k)}var I=1;if(v)I=Yt(ce[vS],S[Jv]());else if(ce!=null&&ce.dayInterval){var T=Math.floor((S.getTime()-U.getTime())/864e5);I=K(ce.dayInterval,0,T)}return N>=0&&I>=0}return!1}function C(y,A){var B=ea(A)?A:"";return y?aM+B+"-"+y:null}function P(y){try{if(y){var A=new Date;return y.getUTCFullYear()===A.getUTCFullYear()&&y.getUTCMonth()===A.getUTCMonth()&&y[Jv]()===A[Jv]()}}catch{}return!1}function V(y,A,B){try{var S={date:w(),count:0};if(y){var U=JSON.parse(y),ce={date:w(U[Xv])||S[Xv],count:U[Mo]||S[Mo],preTriggerDate:U.preTriggerDate?w(U[zv]):void 0};return ce}else return O(A,B,S),S}catch{}return null}function w(y){try{if(y){var A=new Date(y);if(!isNaN(A.getDate()))return A}else return new Date}catch{}return null}function O(y,A,B){try{return CS(y,A,gt(JSON[Lu](B)))}catch{}return!1}function K(y,A,B){return y<=0?1:B>=A&&(B-A)%y==0?Math.floor((B-A)/y)+1:-1}function $(y,A,B,S){ee(A,S||1,y,B)}function R(y){try{var A=_(y);return SP(1e6)<=A.limit.samplingRate}catch{}return!1}function Y(y){try{var A=s[y];if(!A){var B=C(y,u);A=V(kS(a,B),a,B),s[y]=A}return s[y]}catch{}return null}function Q(y){var A=c[y];if(W(A)){A=!1;var B=Y(y);B&&(A=P(B[zv])),c[y]=A}return c[y]}function q(y){return f=f||{},W(f[y])&&(f[y]=[]),f[y]}}return e}(),sM=";",lM="=";function RS(e){if(!e)return{};var t=e[Po](sM),n=QR(t,function(i,a){var o=a[Po](lM);if(o[Ce]===2){var s=o[0][fl](),c=o[1];i[s]=c}return i},{});if(kr(n)[Ce]>0){if(n.endpointsuffix){var r=n.location?n.location+".":"";n[oa]=n[oa]||"https://"+r+"dc."+n.endpointsuffix}n[oa]=n[oa]||Gv,yy(n[oa],"/")&&(n[oa]=n[oa].slice(0,-1))}return n}var cM=function(){function e(t,n,r){var i=this,a=this;a.ver=1,a.sampleRate=100,a.tags={},a[Yn]=Et(t,r)||ir,a.data=n,a.time=Do(new Date),a.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return i.sampleRate===100?4:1},tags:1,data:1}}return e}(),Ei=function(){function e(t,n,r,i){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};var a=this;a.ver=2,a[Yn]=Et(t,n)||ir,a[ar]=la(t,r),a[Fr]=ca(t,i)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Event",e.dataType="EventData",e}(),uM="<no_method>",Fo="error",tn="stack",lp="stackDetails",PS="errorSrc",cp="message",AS="description";function up(e,t){var n=e;return n&&!Se(n)&&(JSON&&JSON[Lu]?(n=JSON[Lu](e),t&&(!n||n==="{}")&&(we(e[Ao])?n=e[Ao]():n=""+e)):n=""+e+" - (Missing JSON.stringify)"),n||""}function MS(e,t){var n=e;return e&&(n&&!Se(n)&&(n=e[cp]||e[AS]||n),n&&!Se(n)&&(n=up(n,!0)),e.filename&&(n=n+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),t&&t!=="String"&&t!=="Object"&&t!=="Error"&&Zt(n||"",t)===-1&&(n=t+": "+n),n||""}function fM(e){try{if(Xt(e))return"hasFullStack"in e&&"typeName"in e}catch{}return!1}function dM(e){try{if(Xt(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch{}return!1}function YS(e){return e&&e.src&&Se(e.src)&&e.obj&&Ae(e.obj)}function ua(e){var t=e||"";Se(t)||(Se(t[tn])?t=t[tn]:t=""+t);var n=t[Po](`
|
|
54
|
+
`);return{src:t,obj:n}}function hM(e){for(var t=[],n=e[Po](`
|
|
55
|
+
`),r=0;r<n[Ce];r++){var i=n[r];n[r+1]&&(i+="@"+n[r+1],r++),t[xu](i)}return{src:e,obj:t}}function xS(e){var t=null;if(e)try{if(e[tn])t=ua(e[tn]);else if(e[Fo]&&e[Fo][tn])t=ua(e[Fo][tn]);else if(e.exception&&e.exception[tn])t=ua(e.exception[tn]);else if(YS(e))t=e;else if(YS(e[lp]))t=e[lp];else if(Qt()&&Qt().opera&&e[cp])t=hM(e[mi]);else if(e.reason&&e.reason[tn])t=ua(e.reason[tn]);else if(Se(e))t=ua(e);else{var n=e[cp]||e[AS]||"";Se(e[PS])&&(n&&(n+=`
|
|
56
|
+
`),n+=" from "+e[PS]),n&&(t=ua(n))}}catch(r){t=ua(r)}return t||{src:"",obj:null}}function vM(e){var t="";return e&&(e.obj?ie(e.obj,function(n){t+=n+`
|
|
57
|
+
`}):t=e.src||""),t}function pM(e){var t,n=e.obj;if(n&&n[Ce]>0){t=[];var r=0,i=0;ie(n,function(p){var _=p[Ao]();if(dp.regex.test(_)){var m=new dp(_,r++);i+=m[xo],t[xu](m)}});var a=32*1024;if(i>a)for(var o=0,s=t[Ce]-1,c=0,u=o,f=s;o<s;){var d=t[o][xo],v=t[s][xo];if(c+=d+v,c>a){var h=f-u+1;t.splice(u,h);break}u=o,f=s,o++,s--}}return t}function Wu(e){var t="";if(e&&(t=e.typeName||e[Yn]||"",!t))try{var n=/function (.{1,200})\(/,r=n.exec(e.constructor[Ao]());t=r&&r[Ce]>1?r[1]:""}catch{}return t}function fp(e){if(e)try{if(!Se(e)){var t=Wu(e),n=up(e,!1);return(!n||n==="{}")&&(e[Fo]&&(e=e[Fo],t=Wu(e)),n=up(e,!0)),Zt(n,t)!==0&&t!=="String"?t+":"+n:n}}catch{}return""+(e||"")}var yn=function(){function e(t,n,r,i,a,o){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var s=this;s.ver=2,dM(n)?(s[Yo]=n[Yo]||[],s[ar]=n[ar],s[Fr]=n[Fr],n[dl]&&(s[dl]=n[dl]),n.id&&(s.id=n.id,n[ar].id=n.id),n[Zv]&&(s[Zv]=n[Zv]),W(n[ep])||(s[ep]=n[ep])):(r||(r={}),o&&(r.id=o),s[Yo]=[new LS(t,n,r)],s[ar]=la(t,r),s[Fr]=ca(t,i),a&&(s[dl]=a),o&&(s.id=o))}return e.CreateAutoException=function(t,n,r,i,a,o,s,c){var u,f=Wu(a||o||t);return u={},u[mi]=MS(t,f),u.url=n,u.lineNumber=r,u.columnNumber=i,u.error=fp(a||o||t),u.evt=fp(o||t),u[$r]=f,u.stackDetails=xS(s||a||o),u.errorSrc=c,u},e.CreateFromInterface=function(t,n,r,i){var a=n[Yo]&&Vs(n[Yo],function(s){return LS[_S](t,s)}),o=new e(t,Ut(Ut({},n),{exceptions:a}),r,i);return o},e.prototype.toInterface=function(){var t,n=this,r=n.exceptions,i=n.properties,a=n.measurements,o=n.severityLevel,s=n.problemGroup,c=n.id,u=n.isManual,f=r instanceof Array&&Vs(r,function(d){return d.toInterface()})||void 0;return t={ver:"4.0"},t[Yo]=f,t.severityLevel=o,t.properties=i,t.measurements=a,t.problemGroup=s,t.id=c,t.isManual=u,t},e.CreateSimpleException=function(t,n,r,i,a,o){var s;return{exceptions:[(s={},s[Vu]=!0,s.message=t,s.stack=a,s.typeName=n,s)]}},e.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",e.dataType="ExceptionData",e.formatError=fp,e}(),LS=function(){function e(t,n,r){this.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2};var i=this;if(fM(n))i[$r]=n[$r],i[mi]=n[mi],i[tn]=n[tn],i[xn]=n[xn]||[],i[Vu]=n[Vu];else{var a=n,o=a&&a.evt;Hd(a)||(a=a[Fo]||o||a),i[$r]=Et(t,Wu(a))||ir,i[mi]=yS(t,MS(n||a,i[$r]))||ir;var s=n[lp]||xS(n);i[xn]=pM(s),Ae(i[xn])&&Vs(i[xn],function(c){c[Lo]=Et(t,c[Lo]),c[sa]=Et(t,c[sa])}),i[tn]=WA(t,vM(s)),i.hasFullStack=Ae(i.parsedStack)&&i.parsedStack[Ce]>0,r&&(r[$r]=r[$r]||i[$r])}}return e.prototype.toInterface=function(){var t,n=this,r=n[xn]instanceof Array&&Vs(n[xn],function(a){return a.toInterface()}),i=(t={id:n.id,outerId:n.outerId,typeName:n[$r],message:n[mi],hasFullStack:n[Vu],stack:n[tn]},t[xn]=r||void 0,t);return i},e.CreateFromInterface=function(t,n){var r=n[xn]instanceof Array&&Vs(n[xn],function(a){return dp[_S](a)})||n[xn],i=new e(t,Ut(Ut({},n),{parsedStack:r}));return i},e}(),dp=function(){function e(t,n){this.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0};var r=this;if(r[xo]=0,typeof t=="string"){var i=t;r[Fu]=n,r[Vo]=uM,r[Lo]=gt(i),r[sa]="",r[hl]=0;var a=i.match(e.regex);a&&a[Ce]>=5&&(r[Vo]=gt(a[2])||r[Vo],r[sa]=gt(a[4]),r[hl]=parseInt(a[5])||0)}else r[Fu]=t[Fu],r[Vo]=t[Vo],r[Lo]=t[Lo],r[sa]=t[sa],r[hl]=t[hl],r[xo]=0;r.sizeInBytes+=r.method[Ce],r.sizeInBytes+=r.fileName[Ce],r.sizeInBytes+=r.assembly[Ce],r[xo]+=e.baseSize,r.sizeInBytes+=r.level.toString()[Ce],r.sizeInBytes+=r.line.toString()[Ce]}return e.CreateFromInterface=function(t){return new e(t,null)},e.prototype.toInterface=function(){var t=this;return{level:t[Fu],method:t[Vo],assembly:t[Lo],fileName:t[sa],line:t[hl]}},e.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,e.baseSize=58,e}(),_M=function(){function e(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0}return e}(),fa=function(){function e(t,n,r,i,a,o,s,c,u){this.aiDataContract={ver:1,metrics:1,properties:0};var f=this;f.ver=2;var d=new _M;d[Mo]=i>0?i:void 0,d.max=isNaN(o)||o===null?void 0:o,d.min=isNaN(a)||a===null?void 0:a,d[Yn]=Et(t,n)||ir,d.value=r,d.stdDev=isNaN(s)||s===null?void 0:s,f.metrics=[d],f[ar]=la(t,c),f[Fr]=ca(t,u)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",e.dataType="MetricData",e}(),_l="";function Si(e){(isNaN(e)||e<0)&&(e=0),e=Math.round(e);var t=_l+e%1e3,n=_l+Math.floor(e/1e3)%60,r=_l+Math.floor(e/(1e3*60))%60,i=_l+Math.floor(e/(1e3*60*60))%24,a=Math.floor(e/(1e3*60*60*24));return t=t[Ce]===1?"00"+t:t[Ce]===2?"0"+t:t,n=n[Ce]<2?"0"+n:n,r=r[Ce]<2?"0"+r:r,i=i[Ce]<2?"0"+i:i,(a>0?a+".":_l)+i+":"+r+":"+n+"."+t}function mM(e,t,n,r,i){return!i&&Se(e)&&(e==="Script error."||e==="Script error")}var Ti=function(){function e(t,n,r,i,a,o,s){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var c=this;c.ver=2,c.id=jA(t,s),c.url=Uu(t,r),c[Yn]=Et(t,n)||ir,isNaN(i)||(c[$u]=Si(i)),c[ar]=la(t,a),c[Fr]=ca(t,o)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",e.dataType="PageviewData",e}(),da=function(){function e(t,n,r,i,a,o,s,c,u,f,d,v){u===void 0&&(u="Ajax"),this.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0};var h=this;h.ver=2,h.id=n,h[$u]=Si(a),h.success=o,h.resultCode=s+"",h.type=Et(t,u);var p=tM(t,r,c,i);h.data=Uu(t,i)||p.data,h.target=Et(t,p.target),f&&(h.target="".concat(h.target," | ").concat(f)),h[Yn]=Et(t,p[Yn]),h[ar]=la(t,d),h[Fr]=ca(t,v)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",e.dataType="RemoteDependencyData",e}(),$o=function(){function e(t,n,r,i,a){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var o=this;o.ver=2,n=n||ir,o[mi]=yS(t,n),o[ar]=la(t,i),o[Fr]=ca(t,a),r&&(o[dl]=r)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Message",e.dataType="MessageData",e}(),Uo=function(){function e(t,n,r,i,a,o,s){this.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0};var c=this;c.ver=2,c.url=Uu(t,r),c[Yn]=Et(t,n)||ir,c[ar]=la(t,a),c[Fr]=ca(t,o),s&&(c.domProcessing=s.domProcessing,c[$u]=s[$u],c.networkConnect=s.networkConnect,c.perfTotal=s.perfTotal,c[mS]=s[mS],c.sentRequest=s.sentRequest)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",e.dataType="PageviewPerformanceData",e}(),ha=function(){function e(t,n){this.aiDataContract={baseType:1,baseData:1},this.baseType=t,this.baseData=n}return e}();function Ni(e){var t="ai."+e+".";return function(n){return t+n}}var ml=Ni("application"),Dt=Ni("device"),ju=Ni("location"),Bo=Ni("operation"),hp=Ni("session"),Di=Ni("user"),va=Ni("cloud"),gl=Ni("internal"),VS=function(e){Rr(t,e);function t(){return e.call(this)||this}return t}(X1({applicationVersion:ml("ver"),applicationBuild:ml("build"),applicationTypeId:ml("typeId"),applicationId:ml("applicationId"),applicationLayer:ml("layer"),deviceId:Dt("id"),deviceIp:Dt("ip"),deviceLanguage:Dt("language"),deviceLocale:Dt("locale"),deviceModel:Dt("model"),deviceFriendlyName:Dt("friendlyName"),deviceNetwork:Dt("network"),deviceNetworkName:Dt("networkName"),deviceOEMName:Dt("oemName"),deviceOS:Dt("os"),deviceOSVersion:Dt("osVersion"),deviceRoleInstance:Dt("roleInstance"),deviceRoleName:Dt("roleName"),deviceScreenResolution:Dt("screenResolution"),deviceType:Dt("type"),deviceMachineName:Dt("machineName"),deviceVMName:Dt("vmName"),deviceBrowser:Dt("browser"),deviceBrowserVersion:Dt("browserVersion"),locationIp:ju("ip"),locationCountry:ju("country"),locationProvince:ju("province"),locationCity:ju("city"),operationId:Bo("id"),operationName:Bo("name"),operationParentId:Bo("parentId"),operationRootId:Bo("rootId"),operationSyntheticSource:Bo("syntheticSource"),operationCorrelationVector:Bo("correlationVector"),sessionId:hp("id"),sessionIsFirst:hp("isFirst"),sessionIsNew:hp("isNew"),userAccountAcquisitionDate:Di("accountAcquisitionDate"),userAccountId:Di("accountId"),userAgent:Di("userAgent"),userId:Di("id"),userStoreRegion:Di("storeRegion"),userAuthUserId:Di("authUserId"),userAnonymousUserAcquisitionDate:Di("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:Di("authUserAcquisitionDate"),cloudName:va("name"),cloudRole:va("role"),cloudRoleVer:va("roleVer"),cloudRoleInstance:va("roleInstance"),cloudEnvironment:va("environment"),cloudLocation:va("location"),cloudDeploymentUnit:va("deploymentUnit"),internalNodeName:gl("nodeName"),internalSdkVersion:gl("sdkVersion"),internalAgentVersion:gl("agentVersion"),internalSnippet:gl("snippet"),internalSdkSrc:gl("sdkSrc")}));function wi(e,t,n,r,i,a){var o;n=Et(r,n)||ir,(W(e)||W(t)||W(n))&&on("Input doesn't contain all required fields");var s="";e[Wv]&&(s=e[Wv],delete e[Wv]);var c=(o={},o[Yn]=n,o.time=Do(new Date),o.iKey=s,o.ext=a||{},o.tags=[],o.data={},o.baseType=t,o.baseData=e,o);return W(i)||Me(i,function(u,f){c.data[u]=f}),c}var sn={UserExt:"user",DeviceExt:"device",TraceExt:"trace",WebExt:"web",AppExt:"app",OSExt:"os",SessionExt:"ses",SDKExt:"sdk"},tt=new VS;function yl(e){var t=null;if(we(Event))t=new Event(e);else{var n=Ot();n&&n.createEvent&&(t=n.createEvent("Event"),t.initEvent(e,!0,!0))}return t}function FS(e,t){Io(e,null,null,t)}function gM(e){var t=Ot(),n=zn(),r=!1,i=[],a=1;n&&!W(n.onLine)&&!n.onLine&&(a=2);var o=0,s=v(),c=_i(mn("OfflineListener"),e);try{if(f(Qt())&&(r=!0),t){var u=t.body||t;u.ononline&&f(u)&&(r=!0)}}catch{r=!1}function f(C){var P=!1;return C&&(P=Vr(C,"online",_,c),P&&Vr(C,"offline",m,c)),P}function d(){return s}function v(){return!(o===2||a===2)}function h(){var C=v();s!==C&&(s=C,ie(i,function(P){var V={isOnline:s,rState:a,uState:o};try{P(V)}catch{}}))}function p(C){o=C,h()}function _(){a=1,h()}function m(){a=2,h()}function g(){var C=Qt();if(C&&r){if(FS(C,c),t){var P=t.body||t;it(P.ononline)||FS(P,c)}r=!1}}function E(C){return i[xu](C),{rm:function(){var P=i.indexOf(C);if(P>-1)return i.splice(P,1)}}}return{isOnline:d,isListening:function(){return r},unload:g,addListener:E,setOnlineState:p}}var zu="AppInsightsPropertiesPlugin",$S="AppInsightsChannelPlugin",US="ApplicationInsightsAnalytics",Ku="toString",vp="isStorageUseDisabled",Ho="_addHook",It="core",bi="dataType",pa="envelopeType",ln="diagLog",_a="track",qu="trackPageView",pp="trackPreviousPageVisit",ma="sendPageViewInternal",Go="startTime",Xu="properties",or="duration",_p="sendPageViewPerformanceInternal",mp="populatePageViewPerformanceEvent",Wo="href",BS="sendExceptionInternal",gp="exception",El="error",yp="_onerror",Ep="errorSrc",Sp="lineNumber",Tp="columnNumber",HS="message",Np="CreateAutoException",Ju="addTelemetryInitializer",yM="overridePageViewDuration",GS="autoTrackPageVisitTime",WS="isBrowserLinkTrackingEnabled",Sl="length",jS="enableAutoRouteTracking",zS="enableUnhandledPromiseRejectionTracking",Dp="autoUnhandledPromiseInstrumented",wp="getEntriesByType",KS="isPerformanceTimingSupported",qS="getPerformanceTiming",Qu="navigationStart",bp="shouldCollectDuration",XS="isPerformanceTimingDataReady",Tl="responseStart",EM="requestStart",Zu="loadEventEnd",kp="responseEnd",ef="connectEnd",JS="pageVisitStartTime",SM=function(){function e(t,n,r,i){et(e,this,function(a){var o=null,s=[],c=!1,u=!1,f;r&&(f=r.logger);function d(p){r&&r.flush(p,function(){})}function v(){o||(o=_n(function(){o=null;var p=s.slice(0),_=!1;s=[],ie(p,function(m){m()?_=!0:s.push(m)}),s[Sl]>0&&v(),_&&d(!0)},100))}function h(p){s.push(p),v()}a[qu]=function(p,_){var m=p.name;if(W(m)||typeof m!="string"){var g=Ot();m=p.name=g&&g.title||""}var E=p.uri;if(W(E)||typeof E!="string"){var C=tr();E=p.uri=C&&C[Wo]||""}if(!u){var P=Or(),V=P&&P[wp]&&P[wp]("navigation");if(V&&V[0]&&!it(P.timeOrigin)){var w=V[0].loadEventStart;p[Go]=new Date(P.timeOrigin+w)}else{var O=(_||p[Xu]||{})[or]||0;p[Go]=new Date(new Date().getTime()-O)}u=!0}if(!i[KS]()){t[ma](p,_),d(!0),sy()||ee(f,2,25,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.");return}var K=!1,$,R=i[qS]()[Qu];R>0&&($=en(R,+new Date),i[bp]($)||($=void 0));var Y;!W(_)&&!W(_[or])&&(Y=_[or]),(n||!isNaN(Y))&&(isNaN(Y)&&(_||(_={}),_[or]=$),t[ma](p,_),d(!0),K=!0);var Q=6e4;_||(_={}),h(function(){var q=!1;try{if(i[XS]()){q=!0;var y={name:m,uri:E};i[mp](y),!y.isValid&&!K?(_[or]=$,t[ma](p,_)):(K||(_[or]=y.durationMs,t[ma](p,_)),c||(t[_p](y,_),c=!0))}else R>0&&en(R,+new Date)>Q&&(q=!0,K||(_[or]=Q,t[ma](p,_)))}catch(A){ee(f,1,38,"trackPageView failed on page load calculation: "+je(A),{exception:ae(A)})}return q})},a.teardown=function(p,_){if(o){o.cancel(),o=null;var m=s.slice(0);s=[],ie(m,function(g){g()})}}})}return e.__ieDyn=1,e}(),TM=36e5,QS=["googlebot","adsbot-google","apis-google","mediapartners-google"];function ZS(){var e=Or();return e&&!!e.timing}function NM(){var e=Or();return e&&e.getEntriesByType&&e.getEntriesByType("navigation")[Sl]>0}function DM(){var e=Or(),t=e?e.timing:0;return t&&t.domainLookupStart>0&&t[Qu]>0&&t[Tl]>0&&t[EM]>0&&t[Zu]>0&&t[kp]>0&&t[ef]>0&&t.domLoading>0}function e0(){return ZS()?Or().timing:null}function wM(){return NM()?Or()[wp]("navigation")[0]:null}function bM(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=zn()||{},r=n.userAgent,i=!1;if(r)for(var a=0;a<QS[Sl];a++)i=i||Zt(r.toLowerCase(),QS[a])!==-1;if(i)return!1;for(var a=0;a<e[Sl];a++)if(e[a]<0||e[a]>=TM)return!1;return!0}var kM=function(){function e(t){var n=ta(t);et(e,this,function(r){r[mp]=function(i){i.isValid=!1;var a=wM(),o=e0(),s=0,c=0,u=0,f=0,d=0;(a||o)&&(a?(s=a[or],c=a[Go]===0?a[ef]:en(a[Go],a[ef]),u=en(a.requestStart,a[Tl]),f=en(a[Tl],a[kp]),d=en(a.responseEnd,a[Zu])):(s=en(o[Qu],o[Zu]),c=en(o[Qu],o[ef]),u=en(o.requestStart,o[Tl]),f=en(o[Tl],o[kp]),d=en(o.responseEnd,o[Zu])),s===0?ee(n,2,10,"error calculating page view performance.",{total:s,network:c,request:u,response:f,dom:d}):r[bp](s,c,u,f,d)?s<Math.floor(c)+Math.floor(u)+Math.floor(f)+Math.floor(d)?ee(n,2,8,"client performance math error.",{total:s,network:c,request:u,response:f,dom:d}):(i.durationMs=s,i.perfTotal=i[or]=Si(s),i.networkConnect=Si(c),i.sentRequest=Si(u),i.receivedResponse=Si(f),i.domProcessing=Si(d),i.isValid=!0):ee(n,2,45,"Invalid page load duration value. Browser perf data won't be sent.",{total:s,network:c,request:u,response:f,dom:d}))},r[qS]=e0,r[KS]=ZS,r[XS]=DM,r[bp]=bM})}return e.__ieDyn=1,e}(),CM=function(){function e(t,n){var r="prevPageVisitData";et(e,this,function(i){i[pp]=function(s,c){try{var u=a(s,c);u&&n(u.pageName,u.pageUrl,u.pageVisitTime)}catch(f){na(t,"Auto track page visit time failed, metric will not be collected: "+ae(f))}};function a(s,c){var u=null;try{if(u=o(),pl()){sp(t,r)!=null&&on("Cannot call startPageVisit consecutively without first calling stopPageVisit");var f=Pn().stringify(new OM(s,c));OS(t,r,f)}}catch(d){na(t,"Call to restart failed: "+ae(d)),u=null}return u}function o(){var s=null;try{if(pl()){var c=Kn(),u=sp(t,r);u&&Zs()&&(s=Pn().parse(u),s.pageVisitTime=c-s[JS],IS(t,r))}}catch(f){na(t,"Stop page visit timer failed: "+ae(f)),s=null}return s}Be(i,"_logger",{g:function(){return t}}),Be(i,"pageVisitTimeTrackingHandler",{g:function(){return n}})})}return e.__ieDyn=1,e}(),OM=function(){function e(t,n){this[JS]=Kn(),this.pageName=t,this.pageUrl=n}return e}(),t0=function(){function e(t,n){var r=this,i={};r.start=function(a){typeof i[a]<"u"&&ee(t,2,62,"start was called more than once for this event without calling stop.",{name:a,key:a},!0),i[a]=+new Date},r.stop=function(a,o,s,c){var u=i[a];if(isNaN(u))ee(t,2,63,"stop was called without a corresponding start.",{name:a,key:a},!0);else{var f=+new Date,d=en(u,f);r.action(a,o,d,s,c)}delete i[a],i[a]=void 0}}return e}(),Gt,IM="event";function Nl(e,t){e&&e.dispatchEvent&&t&&e.dispatchEvent(t)}function RM(e){if(e&&e.reason){var t=e.reason;return!Se(t)&&we(t[Ku])?t[Ku]():ae(t)}return e||""}var n0=6e4,PM=io((Gt={sessionRenewalMs:yE(r0,30*60*1e3),sessionExpirationMs:yE(r0,24*60*60*1e3),disableExceptionTracking:yt()},Gt[GS]=yt(),Gt[yM]=yt(),Gt[zS]=yt(),Gt[Dp]=!1,Gt.samplingPercentage=Su(AM,100),Gt[vp]=yt(),Gt[WS]=yt(),Gt[jS]=yt(),Gt.namePrefix=VP(),Gt.enableDebug=yt(),Gt.disableFlushOnBeforeUnload=yt(),Gt.disableFlushOnUnload=yt(!1,"disableFlushOnBeforeUnload"),Gt.expCfg=An({inclScripts:!1}),Gt));function r0(e,t){return e=e||t,e<n0&&(e=n0),+e}function AM(e){return!isNaN(e)&&e>0&&e<=100}function MM(e){it(e[vp])||(e[vp]?nM():rM())}var YM=function(e){Rr(t,e);function t(){var n=e.call(this)||this;n.identifier=US,n.priority=180,n.autoRoutePVDelay=500;var r,i,a,o,s,c,u,f,d,v,h,p,_,m,g,E,C,P,V;return et(t,n,function(w,O){var K=O[Ho];ce(),w.getCookieMgr=function(){return Ev(w[It])},w.processTelemetry=function(N,k){w.processNext(N,k)},w.trackEvent=function(N,k){try{var I=wi(N,Ei[bi],Ei[pa],w[ln](),k);w[It][_a](I)}catch(T){U(2,39,"trackTrace failed, trace will not be collected: "+je(T),{exception:ae(T)})}},w.startTrackEvent=function(N){try{r.start(N)}catch(k){U(1,29,"startTrackEvent failed, event will not be collected: "+je(k),{exception:ae(k)})}},w.stopTrackEvent=function(N,k,I){try{r.stop(N,void 0,k,I)}catch(T){U(1,30,"stopTrackEvent failed, event will not be collected: "+je(T),{exception:ae(T)})}},w.trackTrace=function(N,k){try{var I=wi(N,$o[bi],$o[pa],w[ln](),k);w[It][_a](I)}catch(T){U(2,39,"trackTrace failed, trace will not be collected: "+je(T),{exception:ae(T)})}},w.trackMetric=function(N,k){try{var I=wi(N,fa[bi],fa[pa],w[ln](),k);w[It][_a](I)}catch(T){U(1,36,"trackMetric failed, metric will not be collected: "+je(T),{exception:ae(T)})}},w[qu]=function(N,k){try{var I=N||{};a[qu](I,Ut(Ut(Ut({},I.properties),I.measurements),k)),E&&s[pp](I.name,I.uri)}catch(T){U(1,37,"trackPageView failed, page view will not be collected: "+je(T),{exception:ae(T)})}},w[ma]=function(N,k,I){var T=Ot();if(T&&(N.refUri=N.refUri===void 0?T.referrer:N.refUri),W(N[Go])){var J=(k||N[Xu]||{})[or]||0;N[Go]=new Date(new Date().getTime()-J)}var de=wi(N,Ti[bi],Ti[pa],w[ln](),k,I);w[It][_a](de)},w[_p]=function(N,k,I){var T=wi(N,Uo[bi],Uo[pa],w[ln](),k,I);w[It][_a](T)},w.trackPageViewPerformance=function(N,k){var I=N||{};try{o[mp](I),w[_p](I,k)}catch(T){U(1,37,"trackPageViewPerformance failed, page view will not be collected: "+je(T),{exception:ae(T)})}},w.startTrackPage=function(N){try{if(typeof N!="string"){var k=Ot();N=k&&k.title||""}i.start(N)}catch(I){U(1,31,"startTrackPage failed, page view may not be collected: "+je(I),{exception:ae(I)})}},w.stopTrackPage=function(N,k,I,T){try{if(typeof N!="string"){var J=Ot();N=J&&J.title||""}if(typeof k!="string"){var de=tr();k=de&&de[Wo]||""}i.stop(N,k,I,T),E&&s[pp](N,k)}catch(ge){U(1,32,"stopTrackPage failed, page view will not be collected: "+je(ge),{exception:ae(ge)})}},w[BS]=function(N,k,I){var T,J=N&&(N[gp]||N[El])||Hd(N)&&N||{name:N&&typeof N,message:N||ir};N=N||{};var de=new yn(w[ln](),J,N[Xu]||k,N.measurements,N.severityLevel,N.id).toInterface(),ge=Ot();if(ge&&(!((T=w.config.expCfg)===null||T===void 0)&&T.inclScripts)){var b=sA(ge);de[Xu].exceptionScripts=JSON.stringify(b)}var H=wi(de,yn[bi],yn[pa],w[ln](),k,I);w[It][_a](H)},w.trackException=function(N,k){N&&!N[gp]&&N[El]&&(N[gp]=N[El]);try{w[BS](N,k)}catch(I){U(1,35,"trackException failed, exception will not be collected: "+je(I),{exception:ae(I)})}},w[yp]=function(N){var k=N&&N[El],I=N&&N.evt;try{if(!I){var T=Qt();T&&(I=T[IM])}var J=N&&N.url||(Ot()||{}).URL,de=N[Ep]||"window.onerror@"+J+":"+(N[Sp]||0)+":"+(N[Tp]||0),ge={errorSrc:de,url:J,lineNumber:N[Sp]||0,columnNumber:N[Tp]||0,message:N[HS]};mM(N.message,N.url,N.lineNumber,N.columnNumber,N[El])?Q(yn[Np]("Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",J,N[Sp]||0,N[Tp]||0,k,I,null,de),ge):(N[Ep]||(N[Ep]=de),w.trackException({exception:N,severityLevel:3},ge))}catch(H){var b=k?k.name+", "+k[HS]:"null";U(1,11,"_onError threw exception while logging error, error will not be collected: "+je(H),{exception:ae(H),errorString:b})}},w[Ju]=function(N){if(w[It])return w[It][Ju](N);c||(c=[]),c.push(N)},w.initialize=function(N,k,I,T){if(!w.isInitialized()){W(k)&&on("Error initializing"),O.initialize(N,k,I,T);try{V=_i(mn(w.identifier),k.evtNamespace&&k.evtNamespace()),c&&(ie(c,function(J){k[Ju](J)}),c=null),$(N),o=new kM(w[It]),a=new SM(w,g.overridePageViewDuration,w[It],o),s=new CM(w[ln](),function(J,de,ge){return R(J,de,ge)}),r=new t0(w[ln](),"trackEvent"),r.action=function(J,de,ge,b,H){b||(b={}),H||(H={}),b.duration=ge[Ku](),w.trackEvent({name:J,properties:b,measurements:H})},i=new t0(w[ln](),"trackPageView"),i.action=function(J,de,ge,b,H){W(b)&&(b={}),b.duration=ge[Ku]();var X={name:J,uri:de,properties:b,measurements:H};w[ma](X,b)},xc()&&(q(),y())}catch(J){throw w.setInitialized(!1),J}}},w._doTeardown=function(N,k){a&&a.teardown(N,k),Io(window,null,null,V),ce()};function $(N){var k=w.identifier,I=w[It];w[Ho](pt(N,function(){var T=Mn(null,N,I);g=T.getExtCfg(k,PM),E=g[GS],N.storagePrefix&&op(N.storagePrefix),MM(g),u=g[WS],Y()}))}function R(N,k,I){var T={PageName:N,PageUrl:k};w.trackMetric({name:"PageVisitTime",average:I,max:I,min:I,sampleCount:1},T)}function Y(){if(!f&&u){var N=["/browserLinkSignalR/","/__browserLink/"],k=function(I){if(u&&I.baseType===da[bi]){var T=I.baseData;if(T){for(var J=0;J<N[Sl];J++)if(T.target&&Zt(T.target,N[J])>=0)return!1}}return!0};w[Ho](w[Ju](k)),f=!0}}function Q(N,k){var I=wi(N,yn[bi],yn[pa],w[ln](),k);w[It][_a](I)}function q(){var N=Qt(),k=tr(!0);w[Ho](pt(g,function(){h=g.disableExceptionTracking,!h&&!p&&!g.autoExceptionInstrumented&&(K(Mu(N,"onerror",{ns:V,rsp:function(I,T,J,de,ge,b){!h&&I.rslt!==!0&&w[yp](yn[Np](T,J,de,ge,b,I.evt))}},!1)),p=!0)})),S(N,k)}function y(){var N=Qt(),k=tr(!0);w[Ho](pt(g,function(){if(d=g[jS]===!0,N&&d&&!v&&zR()){var I=oy();we(I.pushState)&&we(I.replaceState)&&typeof Event!==Nh&&B(N,I,k)}}))}function A(){var N=null;if(w[It]&&w[It].getTraceCtx&&(N=w[It].getTraceCtx(!1)),!N){var k=w[It].getPlugin(zu);if(k){var I=k.plugin.context;I&&(N=rp(I.telemetryTrace))}}return N}function B(N,k,I){if(v)return;var T=g.namePrefix||"";function J(){d&&Nl(N,yl(T+"locationchange"))}function de(){if(P&&(C=P),P=I&&I[Wo]||"",d){var ge=A();if(ge){ge.setTraceId(hi());var b="_unknown_";I&&I.pathname&&(b=I.pathname+(I.hash||"")),ge.setName(Et(w[ln](),b))}_n((function(H){w[qu]({refUri:H,properties:{duration:0}})}).bind(w,C),w.autoRoutePVDelay)}}K(Mu(k,"pushState",{ns:V,rsp:function(){d&&(Nl(N,yl(T+"pushState")),Nl(N,yl(T+"locationchange")))}},!0)),K(Mu(k,"replaceState",{ns:V,rsp:function(){d&&(Nl(N,yl(T+"replaceState")),Nl(N,yl(T+"locationchange")))}},!0)),Vr(N,T+"popstate",J,V),Vr(N,T+"locationchange",de,V),v=!0}function S(N,k){w[Ho](pt(g,function(){_=g[zS]===!0,p=p||g[Dp],_&&!m&&(K(Mu(N,"onunhandledrejection",{ns:V,rsp:function(I,T){_&&I.rslt!==!0&&w[yp](yn[Np](RM(T),k?k[Wo]:"",0,0,T,I.evt))}},!1)),g[Dp]=m=!0)}))}function U(N,k,I,T,J){w[ln]().throwInternal(N,k,I,T,J)}function ce(){r=null,i=null,a=null,o=null,s=null,c=null,u=!1,f=!1,d=!1,v=!1,h=!1,p=!1,_=!1,m=!1,E=!1;var N=tr(!0);C=N&&N[Wo]||"",P=null,V=null,g=null,Be(w,"config",{g:function(){return g}})}Be(w,"_pageViewManager",{g:function(){return a}}),Be(w,"_pageViewPerformanceManager",{g:function(){return o}}),Be(w,"_pageVisitTimeManager",{g:function(){return s}}),Be(w,"_evtNamespace",{g:function(){return"."+V}})}),n}return t.Version="3.3.1",t}(Oo),tf="featureOptIn",i0="onCfgChangeReceive",a0="nonOverrideConfigs",o0="scheduleFetchTimeout";function s0(e,t,n,r){try{var i=n>r;i&&(e=null);var a=n==0?d1({},e):e;return a&&t&&!i&&Me(a,function(o){var s=t[o];s&&(Xt(a[o])&&Xt(s)?a[o]=s0(a[o],s,++n,r):delete a[o])}),a}catch{}return e}var jo="featureOptIn.",l0=".mode",c0=".onCfg",u0=".offCfg";function xM(e,t,n){var r;if(!t||!t.enabled)return null;var i=(t[tf]||{})[e]||{mode:1},a=i.mode,o=i.onCfg,s=i.offCfg,c=(n||{})[e]||{mode:2},u=c.mode,f=c.onCfg,d=c.offCfg,v=!!c.blockCdnCfg,h=jo+e+l0,p=jo+e+c0,_=jo+e+u0,m=u,g=f,E=d;return v||(a===4||a===5?(m=a==4?3:2,g=o||f,E=s||d):a===2||u===2?(m=2,g=f||o,E=d||s):a===3?(m=3,g=f||o,E=d||s):a===1&&u===1&&(m=1)),r={},r[h]=m,r[p]=g,r[_]=E,r}function LM(e,t){try{if(!e||!e.enabled)return null;if(!e[tf])return e.config;var n=e[tf],r=e.config||{};return Me(n,function(i){var a=xM(i,e,t.config[tf]);W(a)||(Me(a,function(o,s){gy(r,o,s)}),VM(i,a,r))}),r}catch{}return null}function VM(e,t,n){var r=t[jo+e+l0],i=t[jo+e+c0],a=t[jo+e+u0],o=null;r===3&&(o=i),r===2&&(o=a),o&&Me(o,function(s,c){gy(n,s,c)})}var Dl,FM="ai_cfgsync",f0="GET",$M=18e5,zo=void 0,UM={instrumentationKey:!0,connectionString:!0,endpointUrl:!0},BM=io((Dl={syncMode:1,blkCdnCfg:zo,customEvtName:zo,cfgUrl:zo,overrideSyncFn:zo,overrideFetchFn:zo},Dl[i0]=zo,Dl[o0]=$M,Dl[a0]=UM,Dl)),HM=function(e){Rr(t,e);function t(){var n=e.call(this)||this;n.priority=198,n.identifier="AppInsightsCfgSyncPlugin";var r,i,a,o,s,c,u,f,d,v,h,p,_,m,g,E,C=!1;return et(t,n,function(P,V){w(),P.initialize=function(k,I,T,J){V.initialize(k,I,T,J),o=_i(mn(P.identifier),I.evtNamespace&&I.evtNamespace()),O(k)},P.getCfg=function(){return i},P.pause=function(){C=!0,N()},P.resume=function(){C=!1,ce()},P.setCfg=function(k){return K(k)},P.sync=function(k){return R(k)},P.updateEventListenerName=function(k){return Y(k)},P._doTeardown=function(k,I){$(),N(),w()},P._getDbgPlgTargets=function(){return[f,u,a,d,_]};function w(){i=null,a=null,o=null,s=null,u=null,f=null,_=null,c=null,v=null,h=null,d=null,g=null,E=null,p=null}function O(k){var I=P.identifier,T=P.core;P._addHook(pt(k,function(){var J=Mn(null,k,T);r=J.getExtCfg(I,BM);var de=d;d=!!r.blkCdnCfg,!W(de)&&de!==d&&(!d&&s?m&&m(s,A,f):N()),W(u)&&(u=r.syncMode===2),W(f)&&(f=r.syncMode===1);var ge=r.customEvtName||FM;a!==ge&&(u?Y(ge):($(),a=ge)),W(s)&&(s=r.cfgUrl),s||(i=k,f&&R())})),E=r.overrideSyncFn,g=r.overrideFetchFn,p=r[i0],_=r[a0],v=r[o0],m=Q(),h=0,s&&!d&&m&&m(s,A,f)}function K(k,I){if(k){if(i=k,I&&!C)return R();if(u&&!C)return P.core.updateCfg(k),!0}return!1}function $(){try{var k=pn();k&&Io(k,null,null,o)}catch{}}function R(k){try{return E&&we(E)?E(i,k):gP(a,i,k)}catch{}return!1}function Y(k){try{return $(),k&&(a=k,S()),!0}catch{}return!1}function Q(){var k=g;return W(k)&&(av()?k=q:_u()&&(k=y)),k}function q(k,I,T){var J=pn(),de=J&&J.fetch||null;if(k&&de&&we(de))try{var ge={method:f0},b=new Request(k,ge);xr(fetch(b),function(H){var X=H.value;H.rejected?B(I,400):X.ok?xr(X.text(),function(ue){B(I,X.status,ue.value,T)}):B(I,X.status,null,T)})}catch{}}function y(k,I,T){try{var J=new XMLHttpRequest;J.open(f0,k),J.onreadystatechange=function(){J.readyState===XMLHttpRequest.DONE&&B(I,J.status,J.responseText,T)},J.onerror=function(){B(I,400)},J.ontimeout=function(){B(I,400)},J.send()}catch{}}function A(k,I,T){try{if(k>=200&&k<400&&I){h=0;var J=Pn();if(J){var de=J.parse(I),ge=LM(de,P.core),b=ge&&$t(ge)&&U(ge);b&&K(b,T)}}else h++;h<3&&ce()}catch{}}function B(k,I,T,J){try{k(I,T,J)}catch{}}function S(){if(u){var k=pn();if(k)try{Vr(k,a,function(I){var T=I&&I.detail;if(p&&T)p(T);else{var J=T&&T.cfg,de=J&&$t(J)&&U(J);de&&K(de)}},o,!0)}catch{}}}function U(k,I){var T=null;try{k&&(T=s0(k,_,0,5))}catch{}return T}function ce(){!c&&v&&(c=_n(function(){c=null,m(s,A,f)},v),c.unref())}function N(){c&&c.cancel(),c=null,h=0}P.processTelemetry=function(k,I){P.processNext(k,I)}}),n}return t.__ieDyn=1,t}(Oo),ga="duration",Rt="tags",Cp="deviceType",Wt="data",Ur="name",wl="traceID",Ye="length",bl="stringify",ya="measurements",sr="dataType",Ea="envelopeType",Sa="toString",kl="_get",Ta="enqueue",Na="count",d0="eventsLimitInMem",Br="push",nf="item",Op="emitLineDelimitedJson",Ko="clear",Ip="createNew",rf="markAsSent",Cl="clearSent",Rp="bufferOverride",Pp="BUFFER_KEY",ki="SENT_BUFFER_KEY",qo="concat",Ol="MAX_BUFFER_SIZE",Il="triggerSend",Lt="diagLog",Ap="initialize",Rl="_sender",Mp="customHeaders",h0="maxBatchSizeInBytes",Yp="onunloadDisableBeacon",xp="isBeaconApiDisabled",v0="alwaysUseXhrOverride",Lp="disableXhr",p0="enableSessionStorageBuffer",Ci="_buffer",_0="onunloadDisableFetch",m0="disableSendBeaconSplit",g0="instrumentationKey",y0="enableSendPromise",af="getSenderInst",E0="unloadTransports",S0="convertUndefined",T0="maxBatchInterval",of="serialize",Da="_onError",Vp="_onPartialSuccess",sf="_onSuccess",Fp="itemsReceived",$p="itemsAccepted",Up="oriPayload",Bp="baseType",lf="sampleRate",N0="eventsSendRequest",D0="getSamplingScore",GM="getHashCodeScore",Hp="baseType",lt="baseData",kt="properties",w0="true";function _t(e,t,n){return Ze(e,t,n,Rc)}function WM(e,t,n){var r=n[Rt]=n[Rt]||{},i=t.ext=t.ext||{},a=t[Rt]=t[Rt]||[],o=i.user;o&&(_t(r,tt.userAuthUserId,o.authId),_t(r,tt.userId,o.id||o.localId));var s=i.app;s&&_t(r,tt.sessionId,s.sesId);var c=i.device;c&&(_t(r,tt.deviceId,c.id||c.localId),_t(r,tt[Cp],c.deviceClass),_t(r,tt.deviceIp,c.ip),_t(r,tt.deviceModel,c.model),_t(r,tt[Cp],c[Cp]));var u=t.ext.web;if(u){_t(r,tt.deviceLanguage,u.browserLang),_t(r,tt.deviceBrowserVersion,u.browserVer),_t(r,tt.deviceBrowser,u.browser);var f=n[Wt]=n[Wt]||{},d=f[lt]=f[lt]||{},v=d[kt]=d[kt]||{};_t(v,"domain",u.domain),_t(v,"isManual",u.isManual?w0:null),_t(v,"screenRes",u.screenRes),_t(v,"userConsent",u.userConsent?w0:null)}var h=i.os;h&&(_t(r,tt.deviceOS,h[Ur]),_t(r,tt.deviceOSVersion,h.osVer));var p=i.trace;p&&(_t(r,tt.operationParentId,p.parentID),_t(r,tt.operationName,Et(e,p[Ur])),_t(r,tt.operationId,p[wl]));for(var _={},m=a[Ye]-1;m>=0;m--){var g=a[m];Me(g,function(C,P){_[C]=P}),a.splice(m,1)}Me(a,function(C,P){_[C]=P});var E=Ut(Ut({},r),_);E[tt.internalSdkVersion]||(E[tt.internalSdkVersion]=Et(e,"javascript:".concat(jM.Version),64)),n[Rt]=Jy(E)}function Oi(e,t,n){W(e)||Me(e,function(r,i){Ys(i)?n[r]=i:Se(i)?t[r]=i:Zs()&&(t[r]=Pn()[bl](i))})}function wa(e,t){W(e)||Me(e,function(n,r){e[n]=r||t})}function ba(e,t,n,r){var i=new cM(e,r,t);_t(i,"sampleRate",n[dS]),(n[lt]||{}).startTime&&(i.time=Do(n[lt].startTime)),i.iKey=n.iKey;var a=n.iKey.replace(/-/g,"");return i[Ur]=i[Ur].replace("{0}",a),WM(e,n,i),n[Rt]=n[Rt]||[],Jy(i)}function ka(e,t){W(t[lt])&&ee(e,1,46,"telemetryItem.baseData cannot be null.")}var jM={Version:"3.3.1"};function zM(e,t,n){ka(e,t);var r=t[lt][ya]||{},i=t[lt][kt]||{};Oi(t[Wt],i,r),W(n)||wa(i,n);var a=t[lt];if(W(a))return na(e,"Invalid input for dependency data"),null;var o=a[kt]&&a[kt][hS]?a[kt][hS]:"GET",s=new da(e,a.id,a.target,a[Ur],a[ga],a.success,a.responseCode,o,a.type,a.correlationContext,i,r),c=new ha(da[sr],s);return ba(e,da[Ea],t,c)}function b0(e,t,n){ka(e,t);var r={},i={};t[Hp]!==Ei[sr]&&(r.baseTypeSource=t[Hp]),t[Hp]===Ei[sr]?(r=t[lt][kt]||{},i=t[lt][ya]||{}):t[lt]&&Oi(t[lt],r,i),Oi(t[Wt],r,i),W(n)||wa(r,n);var a=t[lt][Ur],o=new Ei(e,a,r,i),s=new ha(Ei[sr],o);return ba(e,Ei[Ea],t,s)}function KM(e,t,n){ka(e,t);var r=t[lt][ya]||{},i=t[lt][kt]||{};Oi(t[Wt],i,r),W(n)||wa(i,n);var a=t[lt],o=yn.CreateFromInterface(e,a,i,r),s=new ha(yn[sr],o);return ba(e,yn[Ea],t,s)}function qM(e,t,n){ka(e,t);var r=t[lt],i=r[kt]||{},a=r[ya]||{};Oi(t[Wt],i,a),W(n)||wa(i,n);var o=new fa(e,r[Ur],r.average,r.sampleCount,r.min,r.max,r.stdDev,i,a),s=new ha(fa[sr],o);return ba(e,fa[Ea],t,s)}function XM(e,t,n){ka(e,t);var r,i=t[lt];!W(i)&&!W(i[kt])&&!W(i[kt][ga])?(r=i[kt][ga],delete i[kt][ga]):!W(t[Wt])&&!W(t[Wt][ga])&&(r=t[Wt][ga],delete t[Wt][ga]);var a=t[lt],o;((t.ext||{}).trace||{})[wl]&&(o=t.ext.trace[wl]);var s=a.id||o,c=a[Ur],u=a.uri,f=a[kt]||{},d=a[ya]||{};if(W(a.refUri)||(f.refUri=a.refUri),W(a.pageType)||(f.pageType=a.pageType),W(a.isLoggedIn)||(f.isLoggedIn=a.isLoggedIn[Sa]()),!W(a[kt])){var v=a[kt];Me(v,function(_,m){f[_]=m})}Oi(t[Wt],f,d),W(n)||wa(f,n);var h=new Ti(e,c,u,r,f,d,s),p=new ha(Ti[sr],h);return ba(e,Ti[Ea],t,p)}function JM(e,t,n){ka(e,t);var r=t[lt],i=r[Ur],a=r.uri||r.url,o=r[kt]||{},s=r[ya]||{};Oi(t[Wt],o,s),W(n)||wa(o,n);var c=new Uo(e,i,a,void 0,o,s,r),u=new ha(Uo[sr],c);return ba(e,Uo[Ea],t,u)}function QM(e,t,n){ka(e,t);var r=t[lt].message,i=t[lt].severityLevel,a=t[lt][kt]||{},o=t[lt][ya]||{};Oi(t[Wt],a,o),W(n)||wa(a,n);var s=new $o(e,r,i,a,o),c=new ha($o[sr],s);return ba(e,$o[Ea],t,c)}var k0=function(){function e(t,n){var r=[],i=!1,a=n.maxRetryCnt;this[kl]=function(){return r},this._set=function(o){return r=o,r},et(e,this,function(o){o[Ta]=function(s){if(o[Na]()>=n[d0]){i||(ee(t,2,105,"Maximum in-memory buffer size reached: "+o[Na](),!0),i=!0);return}s.cnt=s.cnt||0,!(!W(a)&&s.cnt>a)&&r[Br](s)},o[Na]=function(){return r[Ye]},o.size=function(){for(var s=r[Ye],c=0;c<r[Ye];c++)s+=r[c].item[Ye];return n[Op]||(s+=2),s},o[Ko]=function(){r=[],i=!1},o.getItems=function(){return r.slice(0)},o.batchPayloads=function(s){if(s&&s[Ye]>0){var c=[];ie(s,function(f){c[Br](f[nf])});var u=n[Op]?c.join(`
|
|
58
|
+
`):"["+c.join(",")+"]";return u}return null},o[Ip]=function(s,c,u){var f=r.slice(0);s=s||t,c=c||{};var d=u?new C0(s,c):new Gp(s,c);return ie(f,function(v){d[Ta](v)}),d}})}return e.__ieDyn=1,e}(),Gp=function(e){Rr(t,e);function t(n,r){var i=e.call(this,n,r)||this;return et(t,i,function(a,o){a[rf]=function(s){o[Ko]()},a[Cl]=function(s){}}),i}return t.__ieDyn=1,t}(k0),ZM=["AI_buffer","AI_sentBuffer"],C0=function(e){Rr(t,e);function t(r,i){var a=e.call(this,r,i)||this,o=!1,s=i==null?void 0:i.namePrefix,c=i[Rp]||{getItem:sp,setItem:OS},u=c.getItem,f=c.setItem,d=i.maxRetryCnt;return et(t,a,function(v,h){var p=P(t[Pp]),_=P(t[ki]),m=O(),g=_[qo](m),E=v._set(p[qo](g));E[Ye]>t[Ol]&&(E[Ye]=t[Ol]),w(t[ki],[]),w(t[Pp],E),v[Ta]=function($){if(v[Na]()>=t[Ol]){o||(ee(r,2,67,"Maximum buffer size reached: "+v[Na](),!0),o=!0);return}$.cnt=$.cnt||0,!(!W(d)&&$.cnt>d)&&(h[Ta]($),w(t.BUFFER_KEY,v[kl]()))},v[Ko]=function(){h[Ko](),w(t.BUFFER_KEY,v[kl]()),w(t[ki],[]),o=!1},v[rf]=function($){w(t[Pp],v._set(C($,v[kl]())));var R=P(t[ki]);R instanceof Array&&$ instanceof Array&&(R=R[qo]($),R[Ye]>t[Ol]&&(ee(r,1,67,"Sent buffer reached its maximum size: "+R[Ye],!0),R[Ye]=t[Ol]),w(t[ki],R))},v[Cl]=function($){var R=P(t[ki]);R=C($,R),w(t[ki],R)},v[Ip]=function($,R,Y){Y=!!Y;var Q=v[kl]().slice(0),q=P(t[ki]).slice(0);$=$||r,R=R||{},v[Ko]();var y=Y?new t($,R):new Gp($,R);return ie(Q,function(A){y[Ta](A)}),Y&&y[rf](q),y};function C($,R){var Y=[],Q=[];return ie($,function(q){Q[Br](q[nf])}),ie(R,function(q){!we(q)&&Yt(Q,q[nf])===-1&&Y[Br](q)}),Y}function P($){var R=$;return R=s?s+"_"+R:R,V(R)}function V($){try{var R=u(r,$);if(R){var Y=Pn().parse(R);if(Se(Y)&&(Y=Pn().parse(Y)),Y&&Ae(Y))return Y}}catch(Q){ee(r,1,42," storage key: "+$+", "+je(Q),{exception:ae(Q)})}return[]}function w($,R){var Y=$;try{Y=s?s+"_"+Y:Y;var Q=JSON[bl](R);f(r,Y,Q)}catch(q){f(r,Y,JSON[bl]([])),ee(r,2,41," storage key: "+Y+", "+je(q)+". Buffer cleared",{exception:ae(q)})}}function O(){var $=[];try{return ie(ZM,function(R){var Y=K(R);if($=$[qo](Y),s){var Q=s+"_"+R,q=K(Q);$=$[qo](q)}}),$}catch(R){ee(r,2,41,"Transfer events from previous buffers: "+je(R)+". previous Buffer items can not be removed",{exception:ae(R)})}return[]}function K($){try{var R=V($),Y=[];return ie(R,function(Q){var q={item:Q,cnt:0};Y[Br](q)}),IS(r,$),Y}catch{}return[]}}),a}var n;return n=t,t.VERSION="_1",t.BUFFER_KEY="AI_buffer"+n.VERSION,t.SENT_BUFFER_KEY="AI_sentBuffer"+n.VERSION,t.MAX_BUFFER_SIZE=2e3,t}(k0),eY=function(){function e(t){et(e,this,function(n){n[of]=function(o){var s=r(o,"root");try{return Pn()[bl](s)}catch(c){ee(t,1,48,c&&we(c[Sa])?c[Sa]():"Error serializing object",null,!0)}};function r(o,s){var c="__aiCircularRefCheck",u={};if(!o)return ee(t,1,48,"cannot serialize object because it is null or undefined",{name:s},!0),u;if(o[c])return ee(t,2,50,"Circular reference detected while serializing object",{name:s},!0),u;if(!o.aiDataContract){if(s==="measurements")u=a(o,"number",s);else if(s==="properties")u=a(o,"string",s);else if(s==="tags")u=a(o,"string",s);else if(Ae(o))u=i(o,s);else{ee(t,2,49,"Attempting to serialize an object which does not implement ISerializable",{name:s},!0);try{Pn()[bl](o),u=o}catch(f){ee(t,1,48,f&&we(f[Sa])?f[Sa]():"Error serializing object",null,!0)}}return u}return o[c]=!0,Me(o.aiDataContract,function(f,d){var v=we(d)?d()&1:d&1,h=we(d)?d()&4:d&4,p=d&2,_=o[f]!==void 0,m=Xt(o[f])&&o[f]!==null;if(v&&!_&&!p)ee(t,1,24,"Missing required field specification. The field is required but not present on source",{field:f,name:s});else if(!h){var g=void 0;m?p?g=i(o[f],f):g=r(o[f],f):g=o[f],g!==void 0&&(u[f]=g)}}),delete o[c],u}function i(o,s){var c;if(o)if(!Ae(o))ee(t,1,54,`This field was specified as an array in the contract but the item is not an array.\r
|
|
59
|
+
`,{name:s},!0);else{c=[];for(var u=0;u<o[Ye];u++){var f=o[u],d=r(f,s+"["+u+"]");c[Br](d)}}return c}function a(o,s,c){var u;return o&&(u={},Me(o,function(f,d){if(s==="string")d===void 0?u[f]="undefined":d===null?u[f]="null":d[Sa]?u[f]=d[Sa]():u[f]="invalid field: toString() is not defined.";else if(s==="number")if(d===void 0)u[f]="undefined";else if(d===null)u[f]="null";else{var v=parseFloat(d);u[f]=v}else u[f]="invalid field: "+c+" is of unknown type.",ee(t,1,u[f],null,!0)})),u}})}return e.__ieDyn=1,e}(),tY=8,nY=function(){function e(){}return e.prototype.getHashCodeScore=function(t){var n=this.getHashCode(t)/e.INT_MAX_VALUE;return n*100},e.prototype.getHashCode=function(t){if(t==="")return 0;for(;t[Ye]<tY;)t=t[qo](t);for(var n=5381,r=0;r<t[Ye];++r)n=(n<<5)+n+t.charCodeAt(r),n=n&n;return Math.abs(n)},e.INT_MAX_VALUE=2147483647,e}(),rY=function(){function e(){var t=this,n=new nY,r=new VS;t[D0]=function(i){var a=0;return i[Rt]&&i[Rt][r.userId]?a=n.getHashCodeScore(i[Rt][r.userId]):i.ext&&i.ext.user&&i.ext.user.id?a=n[GM](i.ext.user.id):i[Rt]&&i[Rt][r.operationId]?a=n.getHashCodeScore(i[Rt][r.operationId]):i.ext&&i.ext.telemetryTrace&&i.ext.telemetryTrace[wl]?a=n.getHashCodeScore(i.ext.telemetryTrace[wl]):a=Math.random()*100,a}}return e}(),iY=function(){function e(t,n){this.INT_MAX_VALUE=2147483647;var r=n||ta(null);(t>100||t<0)&&(r.throwInternal(2,58,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:t},!0),t=100),this[lf]=t,this.samplingScoreGenerator=new rY}return e.prototype.isSampledIn=function(t){var n=this[lf],r=!1;return n==null||n>=100||t.baseType===fa[sr]?!0:(r=this.samplingScoreGenerator[D0](t)<n,r)},e}(),at,Hr,lr=void 0,O0="",aY=65e3;function I0(e){try{return e.responseText}catch{}return null}function oY(e){return e&&e.sendPOST}var R0=io((at={endpointUrl:Su(Rc,Gv+Ro)},at[Op]=yt(),at[T0]=15e3,at[h0]=102400,at.disableTelemetry=yt(),at[p0]=yt(!0),at.isRetryDisabled=yt(),at[xp]=yt(!0),at[m0]=yt(!0),at[Lp]=yt(),at[_0]=yt(),at[Yp]=yt(),at[g0]=lr,at.namePrefix=lr,at.samplingPercentage=Su(sY,100),at[Mp]=lr,at[S0]=lr,at[d0]=1e4,at[Rp]=!1,at.httpXHROverride={isVal:oY,v:lr},at[v0]=yt(),at.transports=lr,at.retryCodes=lr,at.maxRetryCnt={isVal:Ys,v:10},at));function sY(e){return!isNaN(e)&&e>0&&e<=100}var lY=(Hr={},Hr[Ei.dataType]=b0,Hr[$o.dataType]=QM,Hr[Ti.dataType]=XM,Hr[Uo.dataType]=JM,Hr[yn.dataType]=KM,Hr[fa.dataType]=qM,Hr[da.dataType]=zM,Hr),cY=function(e){Rr(t,e);function t(){var n=e.call(this)||this;n.priority=1001,n.identifier=$S;var r,i,a,o,s,c,u,f,d=0,v,h,p,_,m,g,E,C,P,V,w,O,K,$,R,Y,Q,q,y,A,B,S,U,ce,N,k,I;return et(t,n,function(T,J){Fa(),T.pause=function(){Ke(),o=!0},T.resume=function(){o&&(o=!1,i=null,M(),Ie())},T.flush=function(D,L,oe){if(D===void 0&&(D=!0),!o){Ke();try{return T[Il](D,null,oe||1)}catch(se){ee(T[Lt](),1,22,"flush failed, telemetry will not be collected: "+je(se),{exception:ae(se)})}}},T.onunloadFlush=function(){if(!o)if(E||A)try{return T[Il](!0,G,2)}catch(D){ee(T[Lt](),1,20,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+je(D),{exception:ae(D)})}else T.flush(!1)},T.addHeader=function(D,L){f[D]=L},T[Ap]=function(D,L,oe,se){T.isInitialized()&&ee(T[Lt](),1,28,"Sender is already initialized"),J[Ap](D,L,oe,se);var De=T.identifier;c=new eY(L.logger),r=0,i=null,a=0,T[Rl]=null,u=0;var Te=T[Lt]();p=_i(mn("Sender"),L.evtNamespace&&L.evtNamespace()),h=gM(p),T._addHook(pt(D,function(Re){var ut=Re.cfg;ut.storagePrefix&&op(ut.storagePrefix);var Dn=Mn(null,ut,L),Pe=Dn.getExtCfg(De,R0);Be(T,"_senderConfig",{g:function(){return Pe}}),L.activeStatus()===ai.PENDING?T.pause():L.activeStatus()===ai.ACTIVE&&T.resume(),m!==Pe.endpointUrl&&(_=m=Pe.endpointUrl),V&&V!==Pe[Mp]&&ie(V,function(Pt){delete f[Pt.header]}),g=Pe[h0],E=(Pe[Yp]===!1||Pe[xp]===!1)&&el(),C=Pe[Yp]===!1&&el(),P=Pe[xp]===!1&&el(),A=Pe[v0],B=!!Pe[Lp],I=Pe.retryCodes;var T_=Pe[Rp],us=!!Pe[p0]&&(!!T_||pl()),DT=Pe.namePrefix,sx=us!==Y||us&&q!==DT||us&&Q!==T_;if(T[Ci]){if(sx)try{T._buffer=T._buffer[Ip](Te,Pe,us)}catch(Pt){ee(T[Lt](),1,12,"failed to transfer telemetry to different buffer storage, telemetry will be lost: "+je(Pt),{exception:ae(Pt)})}M()}else T[Ci]=us?new C0(Te,Pe):new Gp(Te,Pe);q=DT,Y=us,Q=T_,S=!Pe[_0]&&av(!0),N=!!Pe[m0],T._sample=new iY(Pe.samplingPercentage,Te),O=Pe[g0],nn(O,ut)||ee(Te,1,100,"Invalid Instrumentation key "+O),V=Pe[Mp],Se(_)&&!np(_)&&V&&V[Ye]>0?ie(V,function(Pt){n.addHeader(Pt.header,Pt.value)}):V=null,y=Pe[y0];var wT=ge();k?k.SetConfig(wT):(k=new OA,k[Ap](wT,Te));var Of=Pe.httpXHROverride,If=null,zl=null,lx=eE([3,1,2],Pe.transports);If=k&&k[af](lx,!1);var N_=k&&k.getFallbackInst();U=function(Pt,$a){return _e(N_,Pt,$a)},ce=function(Pt,$a){return _e(N_,Pt,$a,!1)},If=A?Of:If||Of||N_,T[Rl]=function(Pt,$a){return _e(If,Pt,$a)},S&&(v=ye);var D_=eE([3,1],Pe[E0]);S||(D_=D_.filter(function(Pt){return Pt!==2})),zl=k&&k[af](D_,!0),zl=A?Of:zl||Of,(A||Pe[E0]||!v)&&zl&&(v=function(Pt,$a){return _e(zl,Pt,$a)}),v||(v=U),w=Pe.disableTelemetry,K=Pe[S0]||lr,$=Pe.isRetryDisabled,R=Pe[T0]}))},T.processTelemetry=function(D,L){var oe;L=T._getTelCtx(L);var se=L[Lt]();try{var De=ze(D,se);if(!De)return;var Te=fe(D,se);if(!Te)return;var Re=c[of](Te),ut=T[Ci];M(Re);var Dn=(oe={},oe[nf]=Re,oe.cnt=0,oe);ut[Ta](Dn),Ie()}catch(Pe){ee(se,2,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+je(Pe),{exception:ae(Pe)})}T.processNext(D,L)},T.isCompletelyIdle=function(){return!o&&d===0&&T._buffer[Na]()===0},T._xhrReadyStateChange=function(D,L,oe){if(!he(L))return b(D,L,oe)},T[Il]=function(D,L,oe){D===void 0&&(D=!0);var se;if(!o)try{var De=T[Ci];if(w)De[Ko]();else{if(De[Na]()>0){var Te=De.getItems();$n(oe||0,D),L?se=L.call(T,Te,D):se=T[Rl](Te,D)}a=+new Date}Ke()}catch(ut){var Re=aE();(!Re||Re>9)&&ee(T[Lt](),1,40,"Telemetry transmission failed, some telemetry will be lost: "+je(ut),{exception:ae(ut)})}return se},T.getOfflineSupport=function(){var D;return D={getUrl:function(){return _},createPayload:te},D[of]=pe,D.batch=x,D.shouldProcess=function(L){return!!ze(L)},D},T._doTeardown=function(D,L){T.onunloadFlush(),bo(h,!1),Fa()},T[Da]=function(D,L,oe){if(!he(D))return H(D,L)},T[Vp]=function(D,L){if(!he(D))return X(D,L)},T[sf]=function(D,L){if(!he(D))return ue(D)},T._xdrOnLoad=function(D,L){if(!he(L))return de(D,L)};function de(D,L){var oe=I0(D);if(D&&(oe+""=="200"||oe===""))r=0,T[sf](L,0);else{var se=Pv(oe);se&&se[Fp]&&se[Fp]>se[$p]&&!$?T[Vp](L,se):T[Da](L,Zy(D))}}function ge(){var D;try{var L={xdrOnComplete:function(se,De,Te){var Re=be(Te);if(Re)return de(se,Re)},fetchOnComplete:function(se,De,Te,Re){var ut=be(Re);if(ut)return F(se.status,ut,se.url,ut[Ye],se.statusText,Te||"")},xhrOnComplete:function(se,De,Te){var Re=be(Te);if(Re)return b(se,Re,Re[Ye])},beaconOnRetry:function(se,De,Te){return Z(se,De,Te)}},oe=(D={},D[y0]=y,D.isOneDs=!1,D.disableCredentials=!1,D[Lp]=B,D.disableBeacon=!P,D.disableBeaconSync=!C,D.senderOnCompleteCallBack=L,D);return oe}catch{}return null}function b(D,L,oe){D.readyState===4&&F(D.status,L,D.responseURL,oe,pu(D),I0(D)||D.response)}function H(D,L,oe){ee(T[Lt](),2,26,"Failed to send telemetry.",{message:L}),T._buffer&&T._buffer[Cl](D)}function X(D,L){for(var oe=[],se=[],De=L.errors.reverse(),Te=0,Re=De;Te<Re.length;Te++){var ut=Re[Te],Dn=D.splice(ut.index,1)[0];St(ut.statusCode)?se[Br](Dn):oe[Br](Dn)}D[Ye]>0&&T[sf](D,L[$p]),oe[Ye]>0&&T[Da](oe,pu(null,["partial success",L[$p],"of",L.itemsReceived].join(" "))),se[Ye]>0&&(ke(se),ee(T[Lt](),2,40,"Partial success. Delivered: "+D[Ye]+", Failed: "+oe[Ye]+". Will retry to send "+se[Ye]+" our of "+L[Fp]+" items"))}function ue(D,L){T._buffer&&T._buffer[Cl](D)}function be(D){try{if(D){var L=D,oe=L[Up];return oe&&oe[Ye]?oe:null}}catch{}return null}function ze(D,L){if(w)return!1;if(!D)return L&&ee(L,1,7,"Cannot send empty telemetry"),!1;if(D.baseData&&!D[Bp])return L&&ee(L,1,70,"Cannot send telemetry without baseData and baseType"),!1;if(D[Bp]||(D[Bp]="EventData"),!T[Rl])return L&&ee(L,1,28,"Sender was not initialized"),!1;if(re(D))D[dS]=T._sample[lf];else return L&&ee(L,2,33,"Telemetry item was sampled out and not sent",{SampleRate:T._sample[lf]}),!1;return!0}function fe(D,L){var oe=D.iKey||O,se=t.constructEnvelope(D,oe,L,K);if(!se){ee(L,1,47,"Unable to create an AppInsights envelope");return}var De=!1;if(D[Rt]&&D[Rt][Hv]&&(ie(D[Rt][Hv],function(Te){try{Te&&Te(se)===!1&&(De=!0,na(L,"Telemetry processor check returns false"))}catch(Re){ee(L,1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+je(Re),{exception:ae(Re)},!0)}}),delete D[Rt][Hv]),!De)return se}function pe(D){var L=O0,oe=T[Lt]();try{var se=ze(D,oe),De=null;se&&(De=fe(D,oe)),De&&(L=c[of](De))}catch{}return L}function x(D){var L=O0;return D&&D[Ye]&&(L="["+D.join(",")+"]"),L}function te(D){var L,oe=$e();return L={urlString:_},L[Wt]=D,L.headers=oe,L}function re(D){return T._sample.isSampledIn(D)}function ve(D,L,oe,se){L===200&&D?T._onSuccess(D,D[Ye]):se&&T[Da](D,se)}function _e(D,L,oe,se){se===void 0&&(se=!0);var De=function(ut,Dn,Pe){return ve(L,ut,Dn,Pe)},Te=Xe(L),Re=D&&D.sendPOST;return Re&&Te?(se&&T._buffer[rf](L),Re(Te,De,!oe)):null}function Xe(D){var L;if(Ae(D)&&D[Ye]>0){var oe=T[Ci].batchPayloads(D),se=$e(),De=(L={},L[Wt]=oe,L.urlString=_,L.headers=se,L.disableXhrSync=B,L.disableFetchKeepAlive=!S,L[Up]=D,L);return De}return null}function $e(){try{var D=f||{};return np(_)&&(D[Qe[6]]=Qe[7]),D}catch{}return null}function M(D){var L=D?D[Ye]:0;return T[Ci].size()+L>g?((!h||h.isOnline())&&T[Il](!0,null,10),!0):!1}function F(D,L,oe,se,De,Te){var Re=null;if(T._appId||(Re=Pv(Te),Re&&Re.appId&&(T._appId=Re.appId)),(D<200||D>=300)&&D!==0){if((D===301||D===307||D===308)&&!j(oe)){T[Da](L,De);return}if(h&&!h.isOnline()){if(!$){var ut=10;ke(L,ut),ee(T[Lt](),2,40,". Offline - Response Code: ".concat(D,". Offline status: ").concat(!h.isOnline(),". Will retry to send ").concat(L.length," items."))}return}!$&&St(D)?(ke(L),ee(T[Lt](),2,40,". Response code "+D+". Will retry to send "+L[Ye]+" items.")):T[Da](L,De)}else j(oe),D===206?(Re||(Re=Pv(Te)),Re&&!$?T[Vp](L,Re):T[Da](L,De)):(r=0,T[sf](L,se))}function j(D){return u>=10?!1:!W(D)&&D!==""&&D!==_?(_=D,++u,!0):!1}function G(D,L){if(v)v(D,!1);else{var oe=k&&k[af]([3],!0);return _e(oe,D,L)}}function Z(D,L,oe){var se=D,De=se&&se[Up];if(N)ce&&ce(De,!0),ee(T[Lt](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender.");else{for(var Te=[],Re=0;Re<De[Ye];Re++){var ut=De[Re],Dn=[ut],Pe=Xe(Dn);oe(Pe,L)?T._onSuccess(Dn,Dn[Ye]):Te[Br](ut)}Te[Ye]>0&&(ce&&ce(Te,!0),ee(T[Lt](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}function he(D){try{if(D&&D[Ye])return Se(D[0])}catch{}return null}function ye(D,L){var oe=null;if(Ae(D)){for(var se=D[Ye],De=0;De<D[Ye];De++)se+=D[De].item[Ye];var Te=k.getSyncFetchPayload();Te+se<=aY?oe=2:el()?oe=3:(oe=1,ee(T[Lt](),2,40,". Failed to send telemetry with Beacon API, retried with xhrSender."));var Re=k&&k[af]([oe],!0);return _e(Re,D,L)}return null}function ke(D,L){if(L===void 0&&(L=1),!(!D||D[Ye]===0)){var oe=T[Ci];oe[Cl](D),r++;for(var se=0,De=D;se<De.length;se++){var Te=De[se];Te.cnt=Te.cnt||0,Te.cnt++,oe[Ta](Te)}Ee(L),Ie()}}function Ee(D){var L=10,oe;if(r<=1)oe=L;else{var se=(Math.pow(2,r)-1)/2,De=Math.floor(Math.random()*se*L)+1;De=D*De,oe=Math.max(Math.min(De,3600),L)}var Te=Kn()+oe*1e3;i=Te}function Ie(){if(!s&&!o){var D=i?Math.max(0,i-Kn()):0,L=Math.max(R,D);s=_n(function(){s=null,T[Il](!0,null,1)},L)}}function Ke(){s&&s.cancel(),s=null,i=null}function St(D){return W(I)?D===401||D===408||D===429||D===500||D===502||D===503||D===504:I[Ye]&&I.indexOf(D)>-1}function Nn(){var D="getNotifyMgr";return T.core[D]?T.core[D]():T.core._notificationManager}function $n(D,L){var oe=Nn();if(oe&&oe[N0])try{oe[N0](D,L)}catch(se){ee(T[Lt](),1,74,"send request notification failed: "+je(se),{exception:ae(se)})}}function nn(D,L){var oe=L.disableInstrumentationKeyValidation,se=W(oe)?!1:oe;if(se)return!0;var De="^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",Te=new RegExp(De);return Te.test(D)}function Fa(){T[Rl]=null,T[Ci]=null,T._appId=null,T._sample=null,f={},h=null,r=0,i=null,a=null,o=!1,s=null,c=null,u=0,d=0,v=null,p=null,_=null,m=null,g=0,E=!1,V=null,w=!1,O=null,K=lr,$=!1,Y=null,q=lr,B=!1,S=!1,N=!1,U=null,ce=null,k=null,Be(T,"_senderConfig",{g:function(){return Qy({},R0)}})}}),n}return t.constructEnvelope=function(n,r,i,a){var o;r!==n.iKey&&!W(r)?o=Ut(Ut({},n),{iKey:r}):o=n;var s=lY[o.baseType]||b0;return s(i,o,a)},t}(Oo),P0="duration",Ca="properties",Ln="requestUrl",Pl="inst",Oa="length",Gr="traceID",Ii="spanID",En="traceFlags",Al="context",Xo="aborted",cf="traceId",uf="spanId",ff="_addHook",Vn="core",Wp="includeCorrelationHeaders",jp="getAbsoluteUrl",Ia="headers",Sn="requestHeaders",zp="setRequestHeader",A0="trackDependencyDataInternal",Ra="startTime",Jo="toLowerCase",Kp="enableRequestHeaderTracking",M0="enableAjaxErrorStatusText",Y0="enableAjaxPerfTracking",x0="maxAjaxCallsPerView",L0="excludeRequestFromAutoTrackingPatterns",V0="addRequestContext",qp="disableAjaxTracking",F0="ajaxPerfLookupDelay",$0="disableFetchTracking",U0="enableResponseHeaderTracking",Fn="status",Pa="statusText",Qo="headerMap",Xp="openDone",Jp="sendDone",Aa="requestSentTime",Qp="abortDone",Zp="getTraceId",e_="getTraceFlags",Ri="method",t_="errorStatusText",B0="stateChangeAttached",H0="responseText",Ml="responseFinishedTime",n_="CreateTrackItem",G0="response",W0="getAllResponseHeaders",r_="getPartAProps",df="perfMark",Zo="name",i_="perfTiming",Yl="exception",j0="ajaxDiagnosticsMessage",a_="correlationContext",o_="ajaxTotalDuration",s_="eventTraceCtx";function z0(e,t,n){var r=0,i=e[t],a=e[n];return i&&a&&(r=en(i,a)),r}function Ma(e,t,n,r,i){var a=0,o=z0(n,r,i);return o&&(a=Pi(e,t,Si(o))),a}function Pi(e,t,n){var r="ajaxPerf",i=0;if(e&&t&&n){var a=e[r]=e[r]||{};a[t]=n,i=1}return i}function uY(e,t){var n=e[i_],r=t[Ca]||{},i=0,a="name",o="Start",s="End",c="domainLookup",u="connect",f="redirect",d="request",v="response",h="startTime",p=c+o,_=c+s,m=u+o,g=u+s,E=d+o,C=d+s,P=v+o,V=v+s,w=f+o,O=f=s,K="transferSize",$="encodedBodySize",R="decodedBodySize",Y="serverTiming";if(n){i|=Ma(r,f,n,w,O),i|=Ma(r,c,n,p,_),i|=Ma(r,u,n,m,g),i|=Ma(r,d,n,E,C),i|=Ma(r,v,n,P,V),i|=Ma(r,"networkConnect",n,h,g),i|=Ma(r,"sentRequest",n,E,V);var Q=n[P0];Q||(Q=z0(n,h,V)||0),i|=Pi(r,P0,Q),i|=Pi(r,"perfTotal",Q);var q=n[Y];if(q){var y={};ie(q,function(A,B){var S=du(A[a]||""+B),U=y[S]||{};Me(A,function(ce,N){(ce!==a&&Se(N)||Ys(N))&&(U[ce]&&(N=U[ce]+";"+N),(N||!Se(N))&&(U[ce]=N))}),y[S]=U}),i|=Pi(r,Y,y)}i|=Pi(r,K,n[K]),i|=Pi(r,$,n[$]),i|=Pi(r,R,n[R])}else e[df]&&(i|=Pi(r,"missing",e.perfAttempts));i&&(t[Ca]=r)}var fY=function(){function e(){var t=this;t[Xp]=!1,t.setRequestHeaderDone=!1,t[Jp]=!1,t[Qp]=!1,t[B0]=!1}return e}(),K0=function(){function e(t,n,r,i){var a,o=this,s=r,c="responseText";o[df]=null,o.completed=!1,o.requestHeadersSize=null,o[Sn]=null,o.responseReceivingDuration=null,o.callbackDuration=null,o[o_]=null,o[Xo]=0,o.pageUrl=null,o[Ln]=null,o.requestSize=0,o[Ri]=null,o[Fn]=null,o[Aa]=null,o.responseStartedTime=null,o[Ml]=null,o.callbackFinishedTime=null,o.endTime=null,o.xhrMonitoringState=new fY,o.clientFailure=0,o[Gr]=t,o[Ii]=n,o[En]=i==null?void 0:i.getTraceFlags(),i?o[s_]=(a={},a[cf]=i[Zp](),a[uf]=i.getSpanId(),a[En]=i[e_](),a):o[s_]=null,et(e,o,function(u){u.getAbsoluteUrl=function(){return u[Ln]?qA(u[Ln]):null},u.getPathName=function(){return u[Ln]?Uu(s,XA(u[Ri],u[Ln])):null},u[n_]=function(f,d,v){var h;if(u.ajaxTotalDuration=Math.round(en(u.requestSentTime,u.responseFinishedTime)*1e3)/1e3,u[o_]<0)return null;var p=(h={id:"|"+u[Gr]+"."+u[Ii],target:u[jp]()},h[Zo]=u.getPathName(),h.type=f,h[Ra]=null,h.duration=u[o_],h.success=+u[Fn]>=200&&+u[Fn]<400,h.responseCode=+u[Fn],h[Ca]={HttpMethod:u[Ri]},h),_=p[Ca];if(u[Xo]&&(_[Xo]=!0),u[Aa]&&(p[Ra]=new Date,p[Ra].setTime(u[Aa])),uY(u,p),d&&kr(u.requestHeaders)[Oa]>0&&(_[Sn]=u[Sn]),v){var m=v();if(m){var g=m[a_];if(g&&(p.correlationContext=g),m[Qo]&&kr(m.headerMap)[Oa]>0&&(_.responseHeaders=m[Qo]),u[t_])if(u[Fn]>=400){var E=m.type;(E===""||E==="text")&&(_.responseText=m.responseText?m[Pa]+" - "+m[c]:m[Pa]),E==="json"&&(_.responseText=m.response?m[Pa]+" - "+JSON.stringify(m[G0]):m[Pa])}else u[Fn]===0&&(_.responseText=m[Pa]||"")}}return p},u[r_]=function(){var f,d=null,v=u[s_];if(v&&(v[cf]||v[uf])){d={};var h=d[sn.TraceExt]=(f={},f[Gr]=v[cf],f.parentID=v[uf],f);W(v[En])||(h[En]=v[En])}return d}})}return e.__ieDyn=1,e}(),dt,xl="diagLog",Ai="_ajaxData",Ya="fetch",Ll="Failed to monitor XMLHttpRequest",q0=", monitoring data for this ajax call ",es=q0+"may be incorrect.",X0=q0+"won't be sent.",J0="Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",Q0="Failed to add custom defined request context as configured call back may missing a null check.",Z0="Failed to calculate the duration of the ",eT=0;function dY(){var e=pn();return!e||W(e.Request)||W(e.Request[qn])||W(e[Ya])?null:e[Ya]}function hY(e,t){var n,r,i=!1;if(_u()){var a=XMLHttpRequest[qn];i=!W(a)&&!W(a.open)&&!W(a.send)&&!W(a.abort)}var o=aE();if(o&&o<9&&(i=!1),i)try{var s=new XMLHttpRequest,c={xh:[],i:(n={},n[t]={},n)};s[Ai]=c;var u=XMLHttpRequest[qn].open;XMLHttpRequest[qn].open=u}catch(f){i=!1,Vl(e,15,"Failed to enable XMLHttpRequest monitoring, extension is not supported",(r={},r[Yl]=ae(f),r))}return i}var ts=function(e,t){return e&&t&&e[Ai]?(e[Ai].i||{})[t]:null},vY=function(e,t,n){if(e){var r=(e[Ai]||{}).xh;r&&r.push({n:t,v:n})}},l_=function(e,t){var n=!1;if(e){var r=(e[Ai]||{}).xh;r&&ie(r,function(i){if(i.n===t)return n=!0,-1})}return n};function hf(e,t){var n="";try{var r=ts(e,t);r&&r[Ln]&&(n+="(url: '"+r[Ln]+"')")}catch{}return n}function Vl(e,t,n,r,i){ee(e[xl](),1,t,n,r,i)}function Wr(e,t,n,r,i){ee(e[xl](),2,t,n,r,i)}function Fl(e,t,n){return function(r){var i;Vl(e,t,n,(i={ajaxDiagnosticsMessage:hf(r[Pl],e._ajaxDataId)},i[Yl]=ae(r.err),i))}}function ns(e,t){return e&&t?Zt(e,t):-1}function tT(e,t,n){var r={id:t,fn:n};return e.push(r),{remove:function(){ie(e,function(i,a){if(i.id===r.id)return e.splice(a,1),-1})}}}function nT(e,t,n,r){var i=!0;return ie(t,function(a,o){try{a.fn.call(null,n)===!1&&(i=!1)}catch(s){ee(e&&e.logger,1,64,"Dependency "+r+" [#"+o+"] failed: "+je(s),{exception:ae(s)},!0)}}),i}function pY(e,t,n,r,i,a){var o,s=e[Oa];if(s>0){var c=(o={},o[Vn]=t,o.xhr=r,o.input=i,o.init=a,o.traceId=n[Gr],o.spanId=n[Ii],o.traceFlags=n[En],o.context=n[Al]||{},o.aborted=!!n[Xo],o);nT(t,e,c,"listener"),n[Gr]=c[cf],n[Ii]=c[uf],n[En]=c[En],n[Al]=c[Al]}}var vf="*.blob.core.",_Y=Cr([vf+"windows.net",vf+"chinacloudapi.cn",vf+"cloudapi.de",vf+"usgovcloudapi.net"]),mY=[/https:\/\/[^\/]*(\.pipe\.aria|aria\.pipe|events\.data|collector\.azure)\.[^\/]+\/(OneCollector\/1|Collector\/3)\.0/i],gY=Cr((dt={},dt[x0]=500,dt[qp]=!1,dt[$0]=!1,dt[L0]=void 0,dt.disableCorrelationHeaders=!1,dt.distributedTracingMode=1,dt.correlationHeaderExcludedDomains=_Y,dt.correlationHeaderDomains=void 0,dt.correlationHeaderExcludePatterns=void 0,dt.appId=void 0,dt.enableCorsCorrelation=!1,dt[Kp]=!1,dt[U0]=!1,dt[M0]=!1,dt[Y0]=!1,dt.maxAjaxPerfLookupAttempts=3,dt[F0]=25,dt.ignoreHeaders=["Authorization","X-API-Key","WWW-Authenticate"],dt[V0]=void 0,dt.addIntEndpoints=!0,dt)),yY=function(e){Rr(t,e);function t(){var n=e.call(this)||this;n.identifier=t.identifier,n.priority=120;var r,i,a,o,s,c,u,f,d,v,h,p,_,m,g,E,C,P,V,w,O,K,$,R,Y,Q,q,y,A,B;return et(t,n,function(S,U){var ce=U[ff];N(),S.initialize=function(M,F,j,G){S.isInitialized()||(U.initialize(M,F,j,G),w=_i(mn("ajax"),F&&F.evtNamespace&&F.evtNamespace()),k(M),ge(),J(),I())},S._doTeardown=function(){N()},S.trackDependencyData=function(M,F){$e(R,S[Vn],null,M,F)},S[Wp]=function(M,F,j,G){var Z=S._currentWindowHost||a;if(pY($,S[Vn],M,G,F,j),F||F===""){if(DS(o,M[jp](),Z)){j||(j={});var he=new Headers(j[Ia]||(F instanceof Request?F[Ia]||{}:{}));if(v){var ye="|"+M[Gr]+"."+M[Ii];he.set(Qe[3],ye),s&&(M[Sn][Qe[3]]=ye)}var ke=A||f&&f.appId();if(ke&&(he.set(Qe[0],Qe[2]+ke),s&&(M[Sn][Qe[0]]=Qe[2]+ke)),d){var Ee=M[En];W(Ee)&&(Ee=1);var Ie=FE(VE(M[Gr],M[Ii],Ee));he.set(Qe[4],Ie),s&&(M[Sn][Qe[4]]=Ie)}j[Ia]=he}return j}else if(G){if(DS(o,M[jp](),Z)){if(v)if(l_(G,Qe[3]))Wr(S,71,"Unable to set ["+Qe[3]+"] as it has already been set by another instance");else{var ye="|"+M[Gr]+"."+M[Ii];G[zp](Qe[3],ye),s&&(M[Sn][Qe[3]]=ye)}var ke=A||f&&f.appId();if(ke&&(l_(G,Qe[0])?Wr(S,71,"Unable to set ["+Qe[0]+"] as it has already been set by another instance"):(G[zp](Qe[0],Qe[2]+ke),s&&(M[Sn][Qe[0]]=Qe[2]+ke))),d){var Ee=M[En];if(W(Ee)&&(Ee=1),l_(G,Qe[4]))Wr(S,71,"Unable to set ["+Qe[4]+"] as it has already been set by another instance");else{var Ie=FE(VE(M[Gr],M[Ii],Ee));G[zp](Qe[4],Ie),s&&(M[Sn][Qe[4]]=Ie)}}}return G}},S[A0]=function(M,F,j){if(_===-1||u<_){(y===2||y===1)&&typeof M.id=="string"&&M.id[M.id[Oa]-1]!=="."&&(M.id+="."),W(M[Ra])&&(M[Ra]=new Date);var G=wi(M,da.dataType,da.envelopeType,S[xl](),F,j);S[Vn].track(G)}else u===_&&Vl(S,55,"Maximum ajax per page view limit reached, ajax monitoring is paused until the next trackPageView(). In order to increase the limit set the maxAjaxCallsPerView configuration parameter.",!0);++u},S.addDependencyListener=function(M){return tT($,K++,M)},S.addDependencyInitializer=function(M){return tT(R,K++,M)};function N(){var M=tr();r=!1,i=!1,B=!1,a=M&&M.host&&M.host[Jo](),o=null,s=!1,c=!1,u=0,f=null,d=!1,v=!1,h=null,p=!1,_=0,m=!1,g={},E=!1,C=!1,P=null,V=null,w=null,K=0,$=[],R=[],O=mn("ajaxData"),S._ajaxDataId=O,Y=null,Q=1,q=1,y=1,A=null}function k(M){S[ff](pt(M,function(F){var j=F.cfg,G=Mn(null,j,S[Vn]);o=G.getExtCfg(t.identifier,gY),y=o.distributedTracingMode,s=o[Kp],c=o[M0],p=o[Y0],_=o[x0],P=[].concat(o[L0]||[],o.addIntEndpoints!==!1?mY:[]),V=o[V0],v=y===0||y===1,d=y===1||y===2,p&&(h=O),E=!!o[qp],Q=o.maxAjaxPerfLookupAttempts,q=o[F0],Y=o.ignoreHeaders,A=o.appId}))}function I(){var M=S[Vn].getPlugin(zu);M&&(f=M.plugin[Al])}function T(M){var F=!0;return(M||Y)&&ie(Y,function(j){if(j[Jo]()===M[Jo]())return F=!1,-1}),F}function J(){var M=dY();if(M){var F=pn(),j=M.polyfill;S[ff](pt(o,function(){C=!!o[$0],m=o[U0],!C&&!r?(ce(Bv(F,Ya,{ns:w,req:function(G,Z,he){var ye;if(!C&&r&&!b(null,Z,he)&&!(j&&i)){var ke=G.ctx();ye=re(Z,he);var Ee=S[Wp](ye,Z,he);Ee!==he&&G.set(1,Ee),ke.data=ye}},rsp:function(G,Z){if(!C){var he=G.ctx().data;he&&(G.rslt=G.rslt.then(function(ye){return _e(G,(ye||{})[Fn],Z,ye,he,function(){var ke,Ee=(ke={statusText:(ye||{})[Pa]},ke[Qo]=null,ke[a_]=Xe(ye),ke);if(m&&ye){var Ie={};ye.headers.forEach(function(Ke,St){T(St)&&(Ie[St]=Ke)}),Ee[Qo]=Ie}return Ee}),ye}).catch(function(ye){throw _e(G,0,Z,null,he,null,{error:ye.message||ae(ye)}),ye}))}},hkErr:Fl(S,15,"Failed to monitor Window.fetch"+es)},!0,sy())),r=!0):j&&!B&&(ce(Bv(F,Ya,{ns:w,req:function(G,Z,he){b(null,Z,he)}})),B=!0)})),j&&(F[Ya].polyfill=j)}}function de(M,F,j){ce(HA(M,F,j))}function ge(){hY(S,O)&&S[ff](pt(o,function(){E=!!o[qp],s=o[Kp],!E&&!i&&(de(XMLHttpRequest,"open",{ns:w,req:function(M,F,j,G){if(!E){var Z=M[Pl],he=ts(Z,O);!b(Z,j)&&H(Z,he,!0)&&((!he||!he.xhrMonitoringState[Xp])&&(he=ue(Z,F,j,G)),be(Z,he))}},hkErr:Fl(S,15,Ll+".open"+es)}),de(XMLHttpRequest,"send",{ns:w,req:function(M,F){if(!E){var j=M[Pl],G=ts(j,O);H(j,G)&&!G.xhrMonitoringState[Jp]&&(x("xhr",G),G[Aa]=Bu(),S[Wp](G,void 0,void 0,j),G.xhrMonitoringState[Jp]=!0)}},hkErr:Fl(S,17,Ll+es)}),de(XMLHttpRequest,"abort",{ns:w,req:function(M){if(!E){var F=M[Pl],j=ts(F,O);H(F,j)&&!j.xhrMonitoringState[Qp]&&(j[Xo]=1,j.xhrMonitoringState[Qp]=!0)}},hkErr:Fl(S,13,Ll+".abort"+es)}),de(XMLHttpRequest,"setRequestHeader",{ns:w,req:function(M,F,j){if(!E){var G=M[Pl],Z=ts(G,O);Z&&H(G,Z)&&(vY(G,F,j),s&&T(F)&&Z&&(Z[Sn][F]=j))}},hkErr:Fl(S,71,Ll+".setRequestHeader"+es)}),i=!0)}))}function b(M,F,j){var G=!1,Z=((Se(F)?F:(F||{}).url||"")||"")[Jo]();if(ie(P,function(ke){var Ee=ke;Se(ke)&&(Ee=new RegExp(ke)),G||(G=Ee.test(Z))}),G)return G;var he=ns(Z,"?"),ye=ns(Z,"#");return(he===-1||ye!==-1&&ye<he)&&(he=ye),he!==-1&&(Z=Z.substring(0,he)),W(M)?W(F)||(G=(typeof F=="object"?F[Yu]===!0:!1)||(j?j[Yu]===!0:!1)):G=M[Yu]===!0||Z[Yu]===!0,!G&&Z&&np(Z)&&(G=!0),G?g[Z]||(g[Z]=1):g[Z]&&(G=!0),G}function H(M,F,j){var G=!0,Z=i;return W(M)||(G=j===!0||!W(F)),Z&&G}function X(){var M=null;return S[Vn]&&S[Vn].getTraceCtx&&(M=S[Vn].getTraceCtx(!1)),!M&&f&&f.telemetryTrace&&(M=rp(f.telemetryTrace)),M}function ue(M,F,j,G){var Z,he=X(),ye=he&&he[Zp]()||hi(),ke=ni(hi(),0,16),Ee=M[Ai]=M[Ai]||{xh:[],i:{}},Ie=Ee.i=Ee.i||{},Ke=Ie[O]=Ie[O]||new K0(ye,ke,S[xl](),(Z=S.core)===null||Z===void 0?void 0:Z.getTraceCtx());return Ke[En]=he&&he[e_](),Ke[Ri]=F,Ke[Ln]=j,Ke.xhrMonitoringState[Xp]=!0,Ke[Sn]={},Ke.async=G,Ke[t_]=c,Ke}function be(M,F){F.xhrMonitoringState[B0]=Vr(M,"readystatechange",function(){var j;try{M&&M.readyState===4&&H(M,F)&&fe(M)}catch(Z){var G=ae(Z);(!G||ns(G[Jo](),"c00c023f")===-1)&&Vl(S,16,Ll+" 'readystatechange' event handler"+es,(j={},j[j0]=hf(M,O),j[Yl]=G,j))}},w)}function ze(M){try{var F=M.responseType;if(F===""||F==="text")return M[H0]}catch{}return null}function fe(M){var F=ts(M,O);F[Ml]=Bu(),F[Fn]=M[Fn];function j(G,Z){var he=Z||{};he.ajaxDiagnosticsMessage=hf(M,O),G&&(he.exception=ae(G)),Wr(S,14,Z0+"ajax call"+X0,he)}te("xmlhttprequest",F,function(){try{var G=F[n_]("Ajax",s,function(){var Ee,Ie=(Ee={statusText:M[Pa]},Ee[Qo]=null,Ee[a_]=pe(M),Ee.type=M.responseType,Ee[H0]=ze(M),Ee.response=M[G0],Ee);if(m){var Ke=M[W0]();if(Ke){var St=gt(Ke).split(/[\r\n]+/),Nn={};ie(St,function($n){var nn=$n.split(": "),Fa=nn.shift(),D=nn.join(": ");T(Fa)&&(Nn[Fa]=D)}),Ie[Qo]=Nn}}return Ie}),Z=void 0;try{V&&(Z=V({status:M[Fn],xhr:M}))}catch{Wr(S,104,Q0)}if(G){Z!==void 0&&(G[Ca]=Ut(Ut({},G.properties),Z));var he=F[r_]();$e(R,S[Vn],F,G,null,he)}else j(null,{requestSentTime:F[Aa],responseFinishedTime:F[Ml]})}finally{try{var ye=M[Ai]||{i:{}},ke=ye.i||{};ke[O]&&(ke[O]=null)}catch{}}},function(G){j(G,null)})}function pe(M){var F;try{var j=M[W0]();if(j!==null){var G=ns(j[Jo](),Qe[8]);if(G!==-1){var Z=M.getResponseHeader(Qe[0]);return wS(Z)}}}catch(he){Wr(S,18,J0,(F={},F[j0]=hf(M,O),F[Yl]=ae(he),F))}}function x(M,F){if(F[Ln]&&h&&p){var j=Or();if(j&&we(j.mark)){eT++;var G=h+M+"#"+eT;j.mark(G);var Z=j.getEntriesByName(G);Z&&Z[Oa]===1&&(F[df]=Z[0])}}}function te(M,F,j,G){var Z=F[df],he=Or(),ye=Q,ke=q,Ee=F[Ln],Ie=0;(function Ke(){try{if(he&&Z){Ie++;for(var St=null,Nn=he.getEntries(),$n=Nn[Oa]-1;$n>=0;$n--){var nn=Nn[$n];if(nn){if(nn.entryType==="resource")nn.initiatorType===M&&(ns(nn[Zo],Ee)!==-1||ns(Ee,nn[Zo])!==-1)&&(St=nn);else if(nn.entryType==="mark"&&nn[Zo]===Z[Zo]){F[i_]=St;break}if(nn[Ra]<Z[Ra]-1e3)break}}}!Z||F[i_]||Ie>=ye||F.async===!1?(Z&&we(he.clearMarks)&&he.clearMarks(Z[Zo]),F.perfAttempts=Ie,j()):_n(Ke,ke)}catch(Fa){G(Fa)}})()}function re(M,F){var j,G=X(),Z=G&&G[Zp]()||hi(),he=ni(hi(),0,16),ye=new K0(Z,he,S[xl](),(j=S.core)===null||j===void 0?void 0:j.getTraceCtx());ye[En]=G&&G[e_](),ye[Aa]=Bu(),ye[t_]=c;var ke;if(M instanceof Request?ke=(M||{}).url||"":ke=M,ke===""){var Ee=tr();Ee&&Ee.href&&(ke=my(Ee.href,"#")[0])}ye[Ln]=ke;var Ie="GET";F&&F[Ri]?Ie=F[Ri]:M&&M instanceof Request&&(Ie=M[Ri]),ye[Ri]=Ie;var Ke={};if(s){var St=new Headers((F?F[Ia]:0)||(M instanceof Request?M[Ia]||{}:{}));St.forEach(function(Nn,$n){T($n)&&(Ke[$n]=Nn)})}return ye[Sn]=Ke,x(Ya,ye),ye}function ve(M){var F="";try{W(M)||(typeof M=="string"?F+="(url: '".concat(M,"')"):F+="(url: '".concat(M.url,"')"))}catch(j){Vl(S,15,"Failed to grab failed fetch diagnostics message",{exception:ae(j)})}return F}function _e(M,F,j,G,Z,he,ye){if(!Z)return;function ke(Ee,Ie,Ke){var St=Ke||{};St.fetchDiagnosticsMessage=ve(j),Ie&&(St.exception=ae(Ie)),Wr(S,Ee,Z0+"fetch call"+X0,St)}Z[Ml]=Bu(),Z[Fn]=F,te(Ya,Z,function(){var Ee=Z[n_]("Fetch",s,he),Ie;try{V&&(Ie=V({status:F,request:j,response:G}))}catch{Wr(S,104,Q0)}if(Ee){Ie!==void 0&&(Ee[Ca]=Ut(Ut({},Ee.properties),Ie));var Ke=Z[r_]();$e(R,S[Vn],Z,Ee,null,Ke)}else ke(14,null,{requestSentTime:Z[Aa],responseFinishedTime:Z[Ml]})},function(Ee){ke(18,Ee,null)})}function Xe(M){var F;if(M&&M[Ia])try{var j=M[Ia].get(Qe[0]);return wS(j)}catch(G){Wr(S,18,J0,(F={fetchDiagnosticsMessage:ve(M)},F[Yl]=ae(G),F))}}function $e(M,F,j,G,Z,he){var ye,ke=!0,Ee=M[Oa];if(Ee>0){var Ie=(ye={item:G},ye[Ca]=Z,ye.sysProperties=he,ye.context=j?j[Al]:null,ye.aborted=j?!!j[Xo]:!1,ye);ke=nT(F,M,Ie,"initializer")}ke&&S[A0](G,Z,he)}}),n}return t.prototype.processTelemetry=function(n,r){this.processNext(n,r)},t.prototype.addDependencyInitializer=function(n){return null},t.identifier="AjaxDependencyPlugin",t}(Oo),EY=function(){function e(){}return e}(),SY=function(){function e(){this.id="browser",this.deviceClass="Browser"}return e}(),TY="3.3.1",NY=function(){function e(t,n){var r=this,i=pt(t,function(){var a=t.sdkExtension;r.sdkVersion=(a?a+"_":"")+"javascript:"+TY});n&&n.add(i)}return e}(),DY=function(){function e(){}return e}(),pf="sessionManager",_f="update",mf="isUserCookieSet",gf="isNewUser",c_="getTraceCtx",u_="telemetryTrace",rT="applySessionContext",iT="applyApplicationContext",aT="applyDeviceContext",oT="applyOperationContext",sT="applyUserContext",lT="applyOperatingSystemContxt",cT="applyLocationContext",uT="applyInternalContext",xa="accountId",yf="getSessionId",f_="namePrefix",wY="sessionCookiePostfix",fT="userCookiePostfix",Ef="idLength",d_="getNewId",Sf="length",rs="automaticSession",is="authenticatedId",$l="acquisitionDate",Tf="renewalDate",Ul="join",Bl="cookieSeparator",h_="authUserCookieName",bY="ai_session",kY=864e5,CY=18e5,OY=6e4,dT=function(){function e(){}return e}(),IY=function(){function e(t,n,r){var i=this,a,o,s=ta(n),c=Ev(n),u,f;et(e,i,function(d){t||(t={});var v=pt(t,function(E){u=t.sessionExpirationMs||kY,f=t.sessionRenewalMs||CY;var C=t.sessionCookiePostfix||t[f_]||"";a=bY+C});r&&r.add(v),d[rs]=new dT,d[_f]=function(){var E=Kn(),C=!1,P=d[rs];if(P.id||(C=!h(P)),!C&&u>0){var V=E-P[$l],w=E-P[Tf];C=V<0||w<0,C=C||V>u,C=C||w>f}C?_(E):(!o||E-o>OY)&&m(P,E)},d.backup=function(){var E=d[rs];g(E.id,E[$l],E[Tf])};function h(E,C){var P=!1,V=c.get(a);if(V&&we(V.split))P=p(E,V);else{var w=kS(s,a);w&&(P=p(E,w))}return P||!!E.id}function p(E,C){var P=!1,V=", session will be reset",w=C.split("|");if(w[Sf]>=2)try{var O=+w[1]||0,K=+w[2]||0;isNaN(O)||O<=0?ee(s,2,27,"AI session acquisition date is 0"+V):isNaN(K)||K<=0?ee(s,2,27,"AI session renewal date is 0"+V):w[0]&&(E.id=w[0],E[$l]=O,E[Tf]=K,P=!0)}catch($){ee(s,1,9,"Error parsing ai_session value ["+(C||"")+"]"+V+" - "+je($),{exception:ae($)})}return P}function _(E){var C=t[d_]||ov;d.automaticSession.id=C(t[Ef]||22),d[rs][$l]=E,m(d[rs],E),Gu()||ee(s,2,0,"Browser does not support local storage. Session durations will be inaccurate.")}function m(E,C){var P=E[$l];E[Tf]=C;var V=f,w=P+u-C,O=[E.id,P,C],K=0;w<V?K=w/1e3:K=V/1e3;var $=t.cookieDomain||null;c.set(a,O[Ul]("|"),u>0?K:null,$),o=C}function g(E,C,P){CS(s,a,[E,C,P][Ul]("|"))}})}return e.__ieDyn=1,e}(),RY=function(){function e(t,n,r,i){var a=this;a.traceID=t||hi(),a.parentID=n;var o=tr();!r&&o&&o.pathname&&(r=o.pathname),a.name=Et(i,r)}return e}();function hT(e){return!(typeof e!="string"||!e||e.match(/,|;|=| |\|/))}var PY=function(){function e(t,n,r){this.isNewUser=!1,this.isUserCookieSet=!1;var i=ta(n),a=Ev(n),o;et(e,this,function(s){Be(s,"config",{g:function(){return t}});var c=pt(t,function(){var v=t[fT]||"";o=e.userCookieName+v;var h=a.get(o);if(h){s[gf]=!1;var p=h.split(e[Bl]);p[Sf]>0&&(s.id=p[0],s[mf]=!!s.id)}if(!s.id){s.id=u();var _=f(s.id);d(_[Ul](e[Bl]));var m=(t[f_]||"")+"ai_session";iM(i,m)}s[xa]=t[xa]||void 0;var g=a.get(e[h_]);if(g){g=decodeURI(g);var E=g.split(e[Bl]);E[0]&&(s[is]=E[0]),E[Sf]>1&&E[1]&&(s[xa]=E[1])}});r&&r.add(c);function u(){var v=t||{},h=v[d_]||ov,p=h(v[Ef]?t[Ef]:22);return p}function f(v){var h=Do(new Date);s.accountAcquisitionDate=h,s[gf]=!0;var p=[v,h];return p}function d(v){var h=31536e3;s[mf]=a.set(o,v,h)}s.setAuthenticatedUserContext=function(v,h,p){p===void 0&&(p=!1);var _=!hT(v)||h&&!hT(h);if(_){ee(i,2,60,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0);return}s[is]=v;var m=s[is];h&&(s[xa]=h,m=[s[is],s.accountId][Ul](e[Bl])),p&&a.set(e[h_],encodeURI(m))},s.clearAuthenticatedUserContext=function(){s[is]=null,s[xa]=null,a.del(e[h_])},s[_f]=function(v){if(s.id!==v||!s[mf]){var h=v||u(),p=f(h);d(p[Ul](e[Bl]))}}})}return e.cookieSeparator="|",e.userCookieName="ai_user",e.authUserCookieName="ai_authUser",e}(),Nf="ext",Df="tags";function as(e,t){e&&e[t]&&kr(e[t])[Sf]===0&&delete e[t]}function vT(){return null}var AY=function(){function e(t,n,r,i){var a=this,o=t.logger;et(e,this,function(s){if(s.appId=vT,s[yf]=vT,s.application=new EY,s.internal=new NY(n,i),xc()){s[pf]=new IY(n,t,i),s.device=new SY,s.location=new DY,s.user=new PY(n,t,i);var c=void 0,u=void 0,f;r&&(c=r.getTraceId(),u=r.getSpanId(),f=r.getName()),s[u_]=new RY(c,u,f,o),s.session=new dT}s[yf]=function(){var d=s.session,v=null;if(d&&Se(d.id))v=d.id;else{var h=(s[pf]||{})[rs];v=h&&Se(h.id)?h.id:null}return v},s[rT]=function(d,v){Ze(Ht(d.ext,sn.AppExt),"sesId",s[yf](),Se)},s[lT]=function(d,v){Ze(d.ext,sn.OSExt,s.os)},s[iT]=function(d,v){var h=s.application;if(h){var p=Ht(d,Df);Ze(p,tt.applicationVersion,h.ver,Se),Ze(p,tt.applicationBuild,h.build,Se)}},s[aT]=function(d,v){var h=s.device;if(h){var p=Ht(Ht(d,Nf),sn.DeviceExt);Ze(p,"localId",h.id,Se),Ze(p,"ip",h.ip,Se),Ze(p,"model",h.model,Se),Ze(p,"deviceClass",h.deviceClass,Se)}},s[uT]=function(d,v){var h=s.internal;if(h){var p=Ht(d,Df);Ze(p,tt.internalAgentVersion,h.agentVersion,Se),Ze(p,tt.internalSdkVersion,Et(o,h.sdkVersion,64),Se),(d.baseType===sl.dataType||d.baseType===Ti.dataType)&&(Ze(p,tt.internalSnippet,h.snippetVer,Se),Ze(p,tt.internalSdkSrc,h.sdkSrc,Se))}},s[cT]=function(d,v){var h=a.location;h&&Ze(Ht(d,Df,[]),tt.locationIp,h.ip,Se)},s[oT]=function(d,v){var h=s[u_];if(h){var p=Ht(Ht(d,Nf),sn.TraceExt,{traceID:void 0,parentID:void 0});Ze(p,"traceID",h.traceID,Se,W),Ze(p,"name",h.name,Se,W),Ze(p,"parentID",h.parentID,Se,W)}},s.applyWebContext=function(d,v){var h=a.web;h&&Ze(Ht(d,Nf),sn.WebExt,h)},s[sT]=function(d,v){var h=s.user;if(h){var p=Ht(d,Df,[]);Ze(p,tt.userAccountId,h[xa],Se);var _=Ht(Ht(d,Nf),sn.UserExt);Ze(_,"id",h.id,Se),Ze(_,"authId",h[is],Se)}},s.cleanUp=function(d,v){var h=d.ext;h&&(as(h,sn.DeviceExt),as(h,sn.UserExt),as(h,sn.WebExt),as(h,sn.OSExt),as(h,sn.AppExt),as(h,sn.TraceExt))}})}return e.__ieDyn=1,e}(),Vt,v_,os=null,MY=io((Vt={},Vt[xa]=os,Vt.sessionRenewalMs=30*60*1e3,Vt.samplingPercentage=100,Vt.sessionExpirationMs=24*60*60*1e3,Vt.cookieDomain=os,Vt.sdkExtension=os,Vt.isBrowserLinkTrackingEnabled=!1,Vt.appId=os,Vt[yf]=os,Vt[f_]=v_,Vt[wY]=v_,Vt[fT]=v_,Vt[Ef]=22,Vt[d_]=os,Vt)),YY=function(e){Rr(t,e);function t(){var n=e.call(this)||this;n.priority=110,n.identifier=zu;var r,i,a,o,s;return et(t,n,function(c,u){f(),Be(c,"context",{g:function(){return o}}),c.initialize=function(h,p,_,m){u.initialize(h,p,_,m),d(h)},c.processTelemetry=function(h,p){if(!W(h)){p=c._getTelCtx(p),h.name===Ti.envelopeType&&p.diagLog().resetInternalMessageCount();var _=o||{};_.session&&typeof o.session.id!="string"&&_[pf]&&_[pf][_f]();var m=_.user;if(m&&!m[mf]&&m[_f](_.user.id),v(h,p),m&&m[gf]&&(m[gf]=!1,!s)){var g=new sl(72,(zn()||{}).userAgent||"");zP(p.diagLog(),1,g)}c.processNext(h,p)}},c._doTeardown=function(h,p){var _=(h||{}).core();if(_&&_[c_]){var m=_[c_](!1);m===i&&_.setTraceCtx(a)}f()};function f(){r=null,i=null,a=null,o=null,s=!0}function d(h){var p=c.identifier,_=c.core;c._addHook(pt(h,function(){var m=Mn(null,h,_);h.storagePrefix&&op(h.storagePrefix),s=h.disableUserInitMessage!==!1,r=m.getExtCfg(p,MY),c._extConfig=r})),a=_[c_](!1),o=new AY(_,r,a,c._unloadHooks),i=rp(c.context[u_],a),_.setTraceCtx(i),c.context.appId=function(){var m=_.getPlugin($S);return m?m.plugin._appId:null}}function v(h,p){Ht(h,"tags",[]),Ht(h,"ext",{});var _=c.context;_[rT](h,p),_[iT](h,p),_[aT](h,p),_[oT](h,p),_[sT](h,p),_[lT](h,p),_.applyWebContext(h,p),_[cT](h,p),_[uT](h,p),_.cleanUp(h,p)}}),n}return t.__ieDyn=1,t}(Oo),pT="AuthenticatedUserContext",ss="track",p_="snippet",xY="getCookieMgr",LY="startTrackPage",VY="stopTrackPage",__="flush",FY="startTrackEvent",$Y="stopTrackEvent",UY="addTelemetryInitializer",_T="pollInternalLogs",m_="getPlugin",g_="evtNamespace",BY=ss+"Event",HY=ss+"Trace",GY=ss+"Metric",WY=ss+"PageView",jY=ss+"Exception",zY=ss+"DependencyData",KY="set"+pT,qY="clear"+pT,XY="https://js.monitor.azure.com/scripts/b/ai.config.1.cfg.json",y_="version",La="queue",wf="connectionString",Hl="instrumentationKey",mT="instrumentationkey",ls="userOverrideEndpointUrl",bf="endpointUrl",gT="ingestionendpoint",Gl="onunloadFlush",Tn="context",yT="addHousekeepingBeforeUnload",E_="sendMessage",JY="updateSnippetDefinitions",cr,Wl,cs,S_,jl,ET=[p_,"dependencies","properties","_snippetVersion","appInsightsNew","getSKUDefaults"],ST="iKeyUsage",TT="CdnUsage",NT="SdkLoaderVer",kf=void 0,QY={samplingRate:100,maxSendNumber:1},ZY={monthInterval:3,daysOfMonth:[28]},Cf={disabled:!0,limit:An(QY),interval:An(ZY)},ex=(cr={},cr[wf]=kf,cr[bf]=kf,cr[Hl]=kf,cr[ls]=kf,cr.diagnosticLogInterval=Su(tx,1e4),cr.featureOptIn=(Wl={},Wl[ST]={mode:3},Wl[TT]={mode:2},Wl[NT]={mode:2},Wl),cr.throttleMgrCfg=An((cs={},cs[109]=An(Cf),cs[106]=An(Cf),cs[111]=An(Cf),cs[110]=An(Cf),cs)),cr.extensionConfig=An((S_={},S_.AppInsightsCfgSyncPlugin=An({cfgUrl:XY,syncMode:2}),S_)),cr);function tx(e){return e&&e>0}var nx=function(){function e(t){var n=this,r,i,a,o,s,c,u,f,d,v,h,p,_,m;et(e,this,function(g){P(),Be(g,"config",{g:function(){return f}}),ie(["pluginVersionStringArr","pluginVersionString"],function(O){Be(g,O,{g:function(){return u?u[O]:null}})}),o=""+(t.sv||t[y_]||""),t[La]=t[La]||[],t[y_]=t[y_]||2;var E=gn(t.config||{},ex);f=E.cfg,d=new YM,Be(g,"appInsights",{g:function(){return d}}),i=new YY,r=new yY,a=new cY,u=new kA,Be(g,"core",{g:function(){return u}}),w(pt(E,function(){var O=f[wf];function K(){return Xs(function(q,y){xr(O,function(A){var B=A&&A.value,S=null;!A.rejected&&B&&(f[wf]=B,S=RS(B)),q(S)})})}if(Wi(O)){var $=Xs(function(q,y){K().then(function(A){var B=f[Hl];B=A&&A[mT]||B,q(B)}).catch(function(A){q(null)})}),R=f[ls];W(R)&&(R=Xs(function(q,y){K().then(function(A){var B=f[bf],S=A&&A[gT];B=S?S+Ro:B,q(B)}).catch(function(A){q(null)})})),f[Hl]=$,f[bf]=R}if(Se(O)){var Y=RS(O),Q=Y[gT];f.endpointUrl=f[ls]?f[ls]:Q+Ro,f[Hl]=Y[mT]||f[Hl]}f.endpointUrl=f[ls]?f[ls]:f[bf]})),g[p_]=t,g[__]=function(O,K){O===void 0&&(O=!0);var $;return Ou(u,function(){return"AISKU.flush"},function(){O&&!K&&($=Lr(function(Q){K=Q}));var R=1,Y=function(){R--,R===0&&K()};ie(u.getChannels(),function(Q){Q&&(R++,Q[__](O,Y))}),Y()},null,O),$},g[Gl]=function(O){O===void 0&&(O=!0),ie(u.getChannels(),function(K){K[Gl]?K[Gl]():K[__](O)})},g.loadAppInsights=function(O,K,$){O===void 0&&(O=!1),O&&t1("Legacy Mode is no longer supported");function R(Y){if(Y){var Q="";W(o)||(Q+=o),g[Tn]&&g[Tn].internal&&(g[Tn].internal.snippetVer=Q||"-"),Me(g,function(q,y){Se(q)&&!we(y)&&q&&q[0]!=="_"&&Yt(ET,q)===-1&&Y[q]!==y&&(Y[q]=y)})}}return Ou(g.core,function(){return"AISKU.loadAppInsights"},function(){u.initialize(f,[a,i,r,d,v],K,$),Be(g,"context",{g:function(){return i[Tn]}}),h||(h=new oM(u));var Y=rx();Y&&g[Tn]&&(g[Tn].internal.sdkSrc=Y),R(g[p_]),g.emptyQueue(),g[_T](),g[yT](g),w(pt(E,function(){var Q=!1;f.throttleMgrCfg[109]&&(Q=!f.throttleMgrCfg[109].disabled),!h.isReady()&&f.extensionConfig&&f.extensionConfig[v.identifier]&&Q&&h.onReadyState(!0);var q;!p&&!f[wf]&&Xh(ST,f)&&(q=h[E_](106,"See Instrumentation key support at aka.ms/IkeyMigrate"),p=!0),!_&&g[Tn].internal.sdkSrc&&g[Tn].internal.sdkSrc.indexOf("az416426")!=-1&&Xh(TT,f)&&(q=h[E_](110,"See Cdn support notice at aka.ms/JsActiveCdn"),_=!0),!m&&parseInt(o)<6&&Xh(NT,f)&&(q=h[E_](111,"An updated Sdk Loader is available, see aka.ms/SnippetVer"),m=!0)}))}),g},g[JY]=function(O){q1(O,g,function(K){return K&&Yt(ET,K)===-1})},g.emptyQueue=function(){try{if(Ae(g.snippet[La])){for(var O=g.snippet[La].length,K=0;K<O;K++){var $=g.snippet[La][K];$()}g.snippet[La]=void 0,delete g.snippet[La]}}catch(Y){var R={};Y&&we(Y.toString)&&(R.exception=Y.toString())}},g[yT]=function(O){if(xc()||ay()){var K=function(){if(O[Gl](!1),we(g.core[m_])){var R=n.core[m_](zu);if(R){var Y=R.plugin;Y&&Y[Tn]&&Y[Tn]._sessionManager&&Y[Tn]._sessionManager.backup()}}},$=!1;c||(c=_i(s,u[g_]&&u[g_]())),w(pt(f,function(R){var Y=R.cfg,Q=O.appInsights,q=Mn(null,Y,Q.core),y=q.getExtCfg(Q.identifier||US);V();var A=Y.disablePageUnloadEvents;y.disableFlushOnBeforeUnload||(FA(K,A,c)&&($=!0),Vv(K,A,c)&&($=!0),!$&&!vP()&&ee(u.logger,1,19,"Could not add handler for beforeunload and pagehide")),!$&&!y.disableFlushOnUnload&&Vv(K,A,c)}))}},g.getSender=function(){return a},g.unload=function(O,K,$){var R=!1,Y;O&&!K&&(Y=Lr(function(q){K=q}));function Q(q){R||(R=!0,P(),K&&K(q))}return g[Gl](O),V(),u.unload&&u.unload(O,Q,$),Y},Qs(g,d,[xY,BY,WY,"trackPageViewPerformance",jY,"_onerror",HY,GY,LY,VY,FY,$Y]),Qs(g,C,[zY,"addDependencyListener","addDependencyInitializer"]),Qs(g,u,[UY,_T,"stopPollingInternalLogs",m_,"addPlugin",g_,"addUnloadCb","getTraceCtx","updateCfg","onCfgChange"]),Qs(g,function(){var O=i[Tn];return O?O.user:null},[KY,qY]);function C(){return r}function P(){s=mn("AISKU"),c=null,r=null,i=null,a=null,o=null,h=null,p=!1,_=!1,m=!1,v=new HM}function V(){c&&($A(null,c),UA(null,c))}function w(O){u.addUnloadHook(O)}})}return e.prototype.addDependencyInitializer=function(t){return null},e}();function rx(){if(jl)return jl;var e=null,t=!1,n=["://js.monitor.azure.com/","://az416426.vo.msecnd.net/"];try{var r=(document||{}).currentScript;r&&(e=r.src)}catch{}if(e){try{var i=e.toLowerCase();if(i){var a="";ie(n,function(o,s){if(Zt(i,o)!==-1)return a="cdn"+(s+1),Zt(i,"/scripts/")===-1&&(Zt(i,"/next/")!==-1?a+="-next":Zt(i,"/beta/")!==-1&&(a+="-beta")),jl=a+(t?".mod":""),-1})}}catch{}jl=e}return jl}class ix{constructor(t,n){this.loggingLevel=t,this.appInsights=n}debug(t,n){this.loggingLevel<zt.Debug||this.appInsights.trackEvent({name:t,properties:{data:n,severity:zt.Debug}})}info(t,n){this.loggingLevel<zt.Info||this.appInsights.trackEvent({name:t,properties:{data:n,severity:zt.Info}})}warn(t,n){this.loggingLevel<zt.Warn||this.appInsights.trackEvent({name:t,properties:{data:n,severity:zt.Warn}})}error(t,n){this.loggingLevel<zt.Error||this.appInsights.trackEvent({name:t,properties:{data:n,severity:zt.Error}})}}function ax(e){const t=new nx({config:{instrumentationKey:e,enableAutoRouteTracking:!0}});return t.loadAppInsights(),t}const ox={install:function(e,t){const n=e.config.globalProperties.$router,r=ax(t.InstrumentationKey);n.afterEach(o=>{var s;r.trackPageView({name:(s=o.name)==null?void 0:s.toString(),uri:o.fullPath})});const i=Li.getInstance(),a=new ix(t.LoggingLevel,r);i.registerSink(a)}};ot.ApplicationInsightsLoggingPlugin=ox,ot.CapeLogger=Li,ot.CapePlugin=Gg,ot.ConsoleLoggingPlugin=TR,ot.Filter=Zf,ot.LoggingLevel=zt,ot.createCapeApp=ER,ot.useDatasetStore=Es,ot.useFieldStore=ja,ot.useFilterStore=ft,ot.usePropertyStore=hr,ot.useSearchResultsStore=Jr,Object.defineProperty(ot,Symbol.toStringTag,{value:"Module"})});
|