@soton.ac.uk/cape3 3.7.0 → 3.8.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.umd.js CHANGED
@@ -48,12 +48,12 @@ var Ty;function ge(){return Ty.apply(null,arguments)}function BC(e){Ty=e}functio
48
48
  [`+s+"] ";for(c in arguments[0])ct(arguments[0],c)&&(o+=c+": "+arguments[0][c]+", ");o=o.slice(0,-2)}else o=arguments[s];i.push(o)}ky(e+`
49
49
  Arguments: `+Array.prototype.slice.call(i).join("")+`
50
50
  `+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var Cy={};function Py(e,t){ge.deprecationHandler!=null&&ge.deprecationHandler(e,t),Cy[e]||(ky(t),Cy[e]=!0)}ge.suppressDeprecationWarnings=!1,ge.deprecationHandler=null;function Dr(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function FC(e){var t,n;for(n in e)ct(e,n)&&(t=e[n],Dr(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 jh(e,t){var n=qi({},e),i;for(i in t)ct(t,i)&&(Ao(e[i])&&Ao(t[i])?(n[i]={},qi(n[i],e[i]),qi(n[i],t[i])):t[i]!=null?n[i]=t[i]:delete n[i]);for(i in e)ct(e,i)&&!ct(t,i)&&Ao(e[i])&&(n[i]=qi({},n[i]));return n}function qh(e){e!=null&&this.set(e)}var Kh;Object.keys?Kh=Object.keys:Kh=function(e){var t,n=[];for(t in e)ct(e,t)&&n.push(t);return n};var YC={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function $C(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return Dr(i)?i.call(t,n):i}function xr(e,t,n){var i=""+Math.abs(e),o=t-i.length,s=e>=0;return(s?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+i}var Xh=/(\[[^\[]*\])|(\\)?([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,Lu=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Jh={},ns={};function Ie(e,t,n,i){var o=i;typeof i=="string"&&(o=function(){return this[i]()}),e&&(ns[e]=o),t&&(ns[t[0]]=function(){return xr(o.apply(this,arguments),t[1],t[2])}),n&&(ns[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function UC(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function zC(e){var t=e.match(Xh),n,i;for(n=0,i=t.length;n<i;n++)ns[t[n]]?t[n]=ns[t[n]]:t[n]=UC(t[n]);return function(o){var s="",c;for(c=0;c<i;c++)s+=Dr(t[c])?t[c].call(o,e):t[c];return s}}function Mu(e,t){return e.isValid()?(t=Dy(t,e.localeData()),Jh[t]=Jh[t]||zC(t),Jh[t](e)):e.localeData().invalidDate()}function Dy(e,t){var n=5;function i(o){return t.longDateFormat(o)||o}for(Lu.lastIndex=0;n>=0&&Lu.test(e);)e=e.replace(Lu,i),Lu.lastIndex=0,n-=1;return e}var HC={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 WC(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(Xh).map(function(i){return i==="MMMM"||i==="MM"||i==="DD"||i==="dddd"?i.slice(1):i}).join(""),this._longDateFormat[e])}var ZC="Invalid date";function GC(){return this._invalidDate}var jC="%d",qC=/\d{1,2}/;function KC(e){return this._ordinal.replace("%d",e)}var XC={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 JC(e,t,n,i){var o=this._relativeTime[n];return Dr(o)?o(e,t,n,i):o.replace(/%d/i,e)}function QC(e,t){var n=this._relativeTime[e>0?"future":"past"];return Dr(n)?n(t):n.replace(/%s/i,t)}var xy={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 Gn(e){return typeof e=="string"?xy[e]||xy[e.toLowerCase()]:void 0}function Qh(e){var t={},n,i;for(i in e)ct(e,i)&&(n=Gn(i),n&&(t[n]=e[i]));return t}var eP={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 tP(e){var t=[],n;for(n in e)ct(e,n)&&t.push({unit:n,priority:eP[n]});return t.sort(function(i,o){return i.priority-o.priority}),t}var Oy=/\d/,An=/\d\d/,Iy=/\d{3}/,ep=/\d{4}/,Au=/[+-]?\d{6}/,Nt=/\d\d?/,Ry=/\d\d\d\d?/,Ly=/\d\d\d\d\d\d?/,Bu=/\d{1,3}/,tp=/\d{1,4}/,Vu=/[+-]?\d{1,6}/,rs=/\d+/,Fu=/[+-]?\d+/,nP=/Z|[+-]\d\d:?\d\d/gi,Yu=/Z|[+-]\d\d(?::?\d\d)?/gi,rP=/[+-]?\d+(\.\d{1,3})?/,Il=/[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,is=/^[1-9]\d?/,np=/^([1-9]\d|\d)/,$u;$u={};function Ne(e,t,n){$u[e]=Dr(t)?t:function(i,o){return i&&n?n:t}}function iP(e,t){return ct($u,e)?$u[e](t._strict,t._locale):new RegExp(oP(e))}function oP(e){return si(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,i,o,s){return n||i||o||s}))}function si(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function jn(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function et(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=jn(t)),n}var rp={};function _t(e,t){var n,i=t,o;for(typeof e=="string"&&(e=[e]),ai(t)&&(i=function(s,c){c[t]=et(s)}),o=e.length,n=0;n<o;n++)rp[e[n]]=i}function Rl(e,t){_t(e,function(n,i,o,s){o._w=o._w||{},t(n,o._w,o,s)})}function aP(e,t,n){t!=null&&ct(rp,e)&&rp[e](t,n._a,n,e)}function Uu(e){return e%4===0&&e%100!==0||e%400===0}var fn=0,li=1,Or=2,jt=3,dr=4,ci=5,Bo=6,sP=7,lP=8;Ie("Y",0,0,function(){var e=this.year();return e<=9999?xr(e,4):"+"+e}),Ie(0,["YY",2],0,function(){return this.year()%100}),Ie(0,["YYYY",4],0,"year"),Ie(0,["YYYYY",5],0,"year"),Ie(0,["YYYYYY",6,!0],0,"year"),Ne("Y",Fu),Ne("YY",Nt,An),Ne("YYYY",tp,ep),Ne("YYYYY",Vu,Au),Ne("YYYYYY",Vu,Au),_t(["YYYYY","YYYYYY"],fn),_t("YYYY",function(e,t){t[fn]=e.length===2?ge.parseTwoDigitYear(e):et(e)}),_t("YY",function(e,t){t[fn]=ge.parseTwoDigitYear(e)}),_t("Y",function(e,t){t[fn]=parseInt(e,10)});function Ll(e){return Uu(e)?366:365}ge.parseTwoDigitYear=function(e){return et(e)+(et(e)>68?1900:2e3)};var My=os("FullYear",!0);function cP(){return Uu(this.year())}function os(e,t){return function(n){return n!=null?(Ay(this,e,n),ge.updateOffset(this,t),this):Ml(this,e)}}function Ml(e,t){if(!e.isValid())return NaN;var n=e._d,i=e._isUTC;switch(t){case"Milliseconds":return i?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return i?n.getUTCSeconds():n.getSeconds();case"Minutes":return i?n.getUTCMinutes():n.getMinutes();case"Hours":return i?n.getUTCHours():n.getHours();case"Date":return i?n.getUTCDate():n.getDate();case"Day":return i?n.getUTCDay():n.getDay();case"Month":return i?n.getUTCMonth():n.getMonth();case"FullYear":return i?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Ay(e,t,n){var i,o,s,c,f;if(!(!e.isValid()||isNaN(n))){switch(i=e._d,o=e._isUTC,t){case"Milliseconds":return void(o?i.setUTCMilliseconds(n):i.setMilliseconds(n));case"Seconds":return void(o?i.setUTCSeconds(n):i.setSeconds(n));case"Minutes":return void(o?i.setUTCMinutes(n):i.setMinutes(n));case"Hours":return void(o?i.setUTCHours(n):i.setHours(n));case"Date":return void(o?i.setUTCDate(n):i.setDate(n));case"FullYear":break;default:return}s=n,c=e.month(),f=e.date(),f=f===29&&c===1&&!Uu(s)?28:f,o?i.setUTCFullYear(s,c,f):i.setFullYear(s,c,f)}}function uP(e){return e=Gn(e),Dr(this[e])?this[e]():this}function fP(e,t){if(typeof e=="object"){e=Qh(e);var n=tP(e),i,o=n.length;for(i=0;i<o;i++)this[n[i].unit](e[n[i].unit])}else if(e=Gn(e),Dr(this[e]))return this[e](t);return this}function dP(e,t){return(e%t+t)%t}var Mt;Array.prototype.indexOf?Mt=Array.prototype.indexOf:Mt=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function ip(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=dP(t,12);return e+=(t-n)/12,n===1?Uu(e)?29:28:31-n%7%2}Ie("M",["MM",2],"Mo",function(){return this.month()+1}),Ie("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),Ie("MMMM",0,0,function(e){return this.localeData().months(this,e)}),Ne("M",Nt,is),Ne("MM",Nt,An),Ne("MMM",function(e,t){return t.monthsShortRegex(e)}),Ne("MMMM",function(e,t){return t.monthsRegex(e)}),_t(["M","MM"],function(e,t){t[li]=et(e)-1}),_t(["MMM","MMMM"],function(e,t,n,i){var o=n._locale.monthsParse(e,i,n._strict);o!=null?t[li]=o:Ze(n).invalidMonth=e});var hP="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),By="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Vy=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,pP=Il,_P=Il;function mP(e,t){return e?ur(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Vy).test(t)?"format":"standalone"][e.month()]:ur(this._months)?this._months:this._months.standalone}function vP(e,t){return e?ur(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Vy.test(t)?"format":"standalone"][e.month()]:ur(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function gP(e,t,n){var i,o,s,c=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)s=Pr([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(s,"").toLocaleLowerCase();return n?t==="MMM"?(o=Mt.call(this._shortMonthsParse,c),o!==-1?o:null):(o=Mt.call(this._longMonthsParse,c),o!==-1?o:null):t==="MMM"?(o=Mt.call(this._shortMonthsParse,c),o!==-1?o:(o=Mt.call(this._longMonthsParse,c),o!==-1?o:null)):(o=Mt.call(this._longMonthsParse,c),o!==-1?o:(o=Mt.call(this._shortMonthsParse,c),o!==-1?o:null))}function yP(e,t,n){var i,o,s;if(this._monthsParseExact)return gP.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(o=Pr([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),!n&&!this._monthsParse[i]&&(s="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[i]=new RegExp(s.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[i].test(e))return i;if(n&&t==="MMM"&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}}function Fy(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=et(t);else if(t=e.localeData().monthsParse(t),!ai(t))return e}var n=t,i=e.date();return i=i<29?i:Math.min(i,ip(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,i):e._d.setMonth(n,i),e}function Yy(e){return e!=null?(Fy(this,e),ge.updateOffset(this,!0),this):Ml(this,"Month")}function SP(){return ip(this.year(),this.month())}function wP(e){return this._monthsParseExact?(ct(this,"_monthsRegex")||$y.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(ct(this,"_monthsShortRegex")||(this._monthsShortRegex=pP),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function EP(e){return this._monthsParseExact?(ct(this,"_monthsRegex")||$y.call(this),e?this._monthsStrictRegex:this._monthsRegex):(ct(this,"_monthsRegex")||(this._monthsRegex=_P),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function $y(){function e(d,p){return p.length-d.length}var t=[],n=[],i=[],o,s,c,f;for(o=0;o<12;o++)s=Pr([2e3,o]),c=si(this.monthsShort(s,"")),f=si(this.months(s,"")),t.push(c),n.push(f),i.push(f),i.push(c);t.sort(e),n.sort(e),i.sort(e),this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function TP(e,t,n,i,o,s,c){var f;return e<100&&e>=0?(f=new Date(e+400,t,n,i,o,s,c),isFinite(f.getFullYear())&&f.setFullYear(e)):f=new Date(e,t,n,i,o,s,c),f}function Al(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 zu(e,t,n){var i=7+t-n,o=(7+Al(e,0,i).getUTCDay()-t)%7;return-o+i-1}function Uy(e,t,n,i,o){var s=(7+n-i)%7,c=zu(e,i,o),f=1+7*(t-1)+s+c,d,p;return f<=0?(d=e-1,p=Ll(d)+f):f>Ll(e)?(d=e+1,p=f-Ll(e)):(d=e,p=f),{year:d,dayOfYear:p}}function Bl(e,t,n){var i=zu(e.year(),t,n),o=Math.floor((e.dayOfYear()-i-1)/7)+1,s,c;return o<1?(c=e.year()-1,s=o+ui(c,t,n)):o>ui(e.year(),t,n)?(s=o-ui(e.year(),t,n),c=e.year()+1):(c=e.year(),s=o),{week:s,year:c}}function ui(e,t,n){var i=zu(e,t,n),o=zu(e+1,t,n);return(Ll(e)-i+o)/7}Ie("w",["ww",2],"wo","week"),Ie("W",["WW",2],"Wo","isoWeek"),Ne("w",Nt,is),Ne("ww",Nt,An),Ne("W",Nt,is),Ne("WW",Nt,An),Rl(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=et(e)});function bP(e){return Bl(e,this._week.dow,this._week.doy).week}var NP={dow:0,doy:6};function kP(){return this._week.dow}function CP(){return this._week.doy}function PP(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function DP(e){var t=Bl(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Ie("d",0,"do","day"),Ie("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),Ie("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),Ie("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),Ie("e",0,0,"weekday"),Ie("E",0,0,"isoWeekday"),Ne("d",Nt),Ne("e",Nt),Ne("E",Nt),Ne("dd",function(e,t){return t.weekdaysMinRegex(e)}),Ne("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Ne("dddd",function(e,t){return t.weekdaysRegex(e)}),Rl(["dd","ddd","dddd"],function(e,t,n,i){var o=n._locale.weekdaysParse(e,i,n._strict);o!=null?t.d=o:Ze(n).invalidWeekday=e}),Rl(["d","e","E"],function(e,t,n,i){t[i]=et(e)});function xP(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function OP(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function op(e,t){return e.slice(t,7).concat(e.slice(0,t))}var IP="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),zy="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),RP="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),LP=Il,MP=Il,AP=Il;function BP(e,t){var n=ur(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?op(n,this._week.dow):e?n[e.day()]:n}function VP(e){return e===!0?op(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function FP(e){return e===!0?op(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function YP(e,t,n){var i,o,s,c=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)s=Pr([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(s,"").toLocaleLowerCase();return n?t==="dddd"?(o=Mt.call(this._weekdaysParse,c),o!==-1?o:null):t==="ddd"?(o=Mt.call(this._shortWeekdaysParse,c),o!==-1?o:null):(o=Mt.call(this._minWeekdaysParse,c),o!==-1?o:null):t==="dddd"?(o=Mt.call(this._weekdaysParse,c),o!==-1||(o=Mt.call(this._shortWeekdaysParse,c),o!==-1)?o:(o=Mt.call(this._minWeekdaysParse,c),o!==-1?o:null)):t==="ddd"?(o=Mt.call(this._shortWeekdaysParse,c),o!==-1||(o=Mt.call(this._weekdaysParse,c),o!==-1)?o:(o=Mt.call(this._minWeekdaysParse,c),o!==-1?o:null)):(o=Mt.call(this._minWeekdaysParse,c),o!==-1||(o=Mt.call(this._weekdaysParse,c),o!==-1)?o:(o=Mt.call(this._shortWeekdaysParse,c),o!==-1?o:null))}function $P(e,t,n){var i,o,s;if(this._weekdaysParseExact)return YP.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(o=Pr([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(s="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[i]=new RegExp(s.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[i].test(e))return i;if(n&&t==="ddd"&&this._shortWeekdaysParse[i].test(e))return i;if(n&&t==="dd"&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}}function UP(e){if(!this.isValid())return e!=null?this:NaN;var t=Ml(this,"Day");return e!=null?(e=xP(e,this.localeData()),this.add(e-t,"d")):t}function zP(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 HP(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=OP(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function WP(e){return this._weekdaysParseExact?(ct(this,"_weekdaysRegex")||ap.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(ct(this,"_weekdaysRegex")||(this._weekdaysRegex=LP),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function ZP(e){return this._weekdaysParseExact?(ct(this,"_weekdaysRegex")||ap.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(ct(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=MP),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function GP(e){return this._weekdaysParseExact?(ct(this,"_weekdaysRegex")||ap.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(ct(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=AP),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ap(){function e(_,v){return v.length-_.length}var t=[],n=[],i=[],o=[],s,c,f,d,p;for(s=0;s<7;s++)c=Pr([2e3,1]).day(s),f=si(this.weekdaysMin(c,"")),d=si(this.weekdaysShort(c,"")),p=si(this.weekdays(c,"")),t.push(f),n.push(d),i.push(p),o.push(f),o.push(d),o.push(p);t.sort(e),n.sort(e),i.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function sp(){return this.hours()%12||12}function jP(){return this.hours()||24}Ie("H",["HH",2],0,"hour"),Ie("h",["hh",2],0,sp),Ie("k",["kk",2],0,jP),Ie("hmm",0,0,function(){return""+sp.apply(this)+xr(this.minutes(),2)}),Ie("hmmss",0,0,function(){return""+sp.apply(this)+xr(this.minutes(),2)+xr(this.seconds(),2)}),Ie("Hmm",0,0,function(){return""+this.hours()+xr(this.minutes(),2)}),Ie("Hmmss",0,0,function(){return""+this.hours()+xr(this.minutes(),2)+xr(this.seconds(),2)});function Hy(e,t){Ie(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Hy("a",!0),Hy("A",!1);function Wy(e,t){return t._meridiemParse}Ne("a",Wy),Ne("A",Wy),Ne("H",Nt,np),Ne("h",Nt,is),Ne("k",Nt,is),Ne("HH",Nt,An),Ne("hh",Nt,An),Ne("kk",Nt,An),Ne("hmm",Ry),Ne("hmmss",Ly),Ne("Hmm",Ry),Ne("Hmmss",Ly),_t(["H","HH"],jt),_t(["k","kk"],function(e,t,n){var i=et(e);t[jt]=i===24?0:i}),_t(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),_t(["h","hh"],function(e,t,n){t[jt]=et(e),Ze(n).bigHour=!0}),_t("hmm",function(e,t,n){var i=e.length-2;t[jt]=et(e.substr(0,i)),t[dr]=et(e.substr(i)),Ze(n).bigHour=!0}),_t("hmmss",function(e,t,n){var i=e.length-4,o=e.length-2;t[jt]=et(e.substr(0,i)),t[dr]=et(e.substr(i,2)),t[ci]=et(e.substr(o)),Ze(n).bigHour=!0}),_t("Hmm",function(e,t,n){var i=e.length-2;t[jt]=et(e.substr(0,i)),t[dr]=et(e.substr(i))}),_t("Hmmss",function(e,t,n){var i=e.length-4,o=e.length-2;t[jt]=et(e.substr(0,i)),t[dr]=et(e.substr(i,2)),t[ci]=et(e.substr(o))});function qP(e){return(e+"").toLowerCase().charAt(0)==="p"}var KP=/[ap]\.?m?\.?/i,XP=os("Hours",!0);function JP(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var Zy={calendar:YC,longDateFormat:HC,invalidDate:ZC,ordinal:jC,dayOfMonthOrdinalParse:qC,relativeTime:XC,months:hP,monthsShort:By,week:NP,weekdays:IP,weekdaysMin:RP,weekdaysShort:zy,meridiemParse:KP},Pt={},Vl={},Fl;function QP(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n<i;n+=1)if(e[n]!==t[n])return n;return i}function Gy(e){return e&&e.toLowerCase().replace("_","-")}function eD(e){for(var t=0,n,i,o,s;t<e.length;){for(s=Gy(e[t]).split("-"),n=s.length,i=Gy(e[t+1]),i=i?i.split("-"):null;n>0;){if(o=Hu(s.slice(0,n).join("-")),o)return o;if(i&&i.length>=n&&QP(s,i)>=n-1)break;n--}t++}return Fl}function tD(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Hu(e){var t=null,n;if(Pt[e]===void 0&&typeof module<"u"&&module&&module.exports&&tD(e))try{t=Fl._abbr,n=require,n("./locale/"+e),Ki(t)}catch{Pt[e]=null}return Pt[e]}function Ki(e,t){var n;return e&&(Pn(t)?n=fi(e):n=lp(e,t),n?Fl=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Fl._abbr}function lp(e,t){if(t!==null){var n,i=Zy;if(t.abbr=e,Pt[e]!=null)Py("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."),i=Pt[e]._config;else if(t.parentLocale!=null)if(Pt[t.parentLocale]!=null)i=Pt[t.parentLocale]._config;else if(n=Hu(t.parentLocale),n!=null)i=n._config;else return Vl[t.parentLocale]||(Vl[t.parentLocale]=[]),Vl[t.parentLocale].push({name:e,config:t}),null;return Pt[e]=new qh(jh(i,t)),Vl[e]&&Vl[e].forEach(function(o){lp(o.name,o.config)}),Ki(e),Pt[e]}else return delete Pt[e],null}function nD(e,t){if(t!=null){var n,i,o=Zy;Pt[e]!=null&&Pt[e].parentLocale!=null?Pt[e].set(jh(Pt[e]._config,t)):(i=Hu(e),i!=null&&(o=i._config),t=jh(o,t),i==null&&(t.abbr=e),n=new qh(t),n.parentLocale=Pt[e],Pt[e]=n),Ki(e)}else Pt[e]!=null&&(Pt[e].parentLocale!=null?(Pt[e]=Pt[e].parentLocale,e===Ki()&&Ki(e)):Pt[e]!=null&&delete Pt[e]);return Pt[e]}function fi(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Fl;if(!ur(e)){if(t=Hu(e),t)return t;e=[e]}return eD(e)}function rD(){return Kh(Pt)}function cp(e){var t,n=e._a;return n&&Ze(e).overflow===-2&&(t=n[li]<0||n[li]>11?li:n[Or]<1||n[Or]>ip(n[fn],n[li])?Or:n[jt]<0||n[jt]>24||n[jt]===24&&(n[dr]!==0||n[ci]!==0||n[Bo]!==0)?jt:n[dr]<0||n[dr]>59?dr:n[ci]<0||n[ci]>59?ci:n[Bo]<0||n[Bo]>999?Bo:-1,Ze(e)._overflowDayOfYear&&(t<fn||t>Or)&&(t=Or),Ze(e)._overflowWeeks&&t===-1&&(t=sP),Ze(e)._overflowWeekday&&t===-1&&(t=lP),Ze(e).overflow=t),e}var 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)?)?$/,oD=/^\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)?)?$/,aD=/Z|[+-]\d\d(?::?\d\d)?/,Wu=[["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]],up=[["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/]],sD=/^\/?Date\((-?\d+)/i,lD=/^(?:(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}))$/,cD={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 jy(e){var t,n,i=e._i,o=iD.exec(i)||oD.exec(i),s,c,f,d,p=Wu.length,_=up.length;if(o){for(Ze(e).iso=!0,t=0,n=p;t<n;t++)if(Wu[t][1].exec(o[1])){c=Wu[t][0],s=Wu[t][2]!==!1;break}if(c==null){e._isValid=!1;return}if(o[3]){for(t=0,n=_;t<n;t++)if(up[t][1].exec(o[3])){f=(o[2]||" ")+up[t][0];break}if(f==null){e._isValid=!1;return}}if(!s&&f!=null){e._isValid=!1;return}if(o[4])if(aD.exec(o[4]))d="Z";else{e._isValid=!1;return}e._f=c+(f||"")+(d||""),dp(e)}else e._isValid=!1}function uD(e,t,n,i,o,s){var c=[fD(e),By.indexOf(t),parseInt(n,10),parseInt(i,10),parseInt(o,10)];return s&&c.push(parseInt(s,10)),c}function fD(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function dD(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function hD(e,t,n){if(e){var i=zy.indexOf(e),o=new Date(t[0],t[1],t[2]).getDay();if(i!==o)return Ze(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function pD(e,t,n){if(e)return cD[e];if(t)return 0;var i=parseInt(n,10),o=i%100,s=(i-o)/100;return s*60+o}function qy(e){var t=lD.exec(dD(e._i)),n;if(t){if(n=uD(t[4],t[3],t[2],t[5],t[6],t[7]),!hD(t[1],n,e))return;e._a=n,e._tzm=pD(t[8],t[9],t[10]),e._d=Al.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),Ze(e).rfc2822=!0}else e._isValid=!1}function _D(e){var t=sD.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(jy(e),e._isValid===!1)delete e._isValid;else return;if(qy(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:ge.createFromInputFallback(e)}ge.createFromInputFallback=Zn("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 as(e,t,n){return e??t??n}function mD(e){var t=new Date(ge.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function fp(e){var t,n,i=[],o,s,c;if(!e._d){for(o=mD(e),e._w&&e._a[Or]==null&&e._a[li]==null&&vD(e),e._dayOfYear!=null&&(c=as(e._a[fn],o[fn]),(e._dayOfYear>Ll(c)||e._dayOfYear===0)&&(Ze(e)._overflowDayOfYear=!0),n=Al(c,0,e._dayOfYear),e._a[li]=n.getUTCMonth(),e._a[Or]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=i[t]=o[t];for(;t<7;t++)e._a[t]=i[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[jt]===24&&e._a[dr]===0&&e._a[ci]===0&&e._a[Bo]===0&&(e._nextDay=!0,e._a[jt]=0),e._d=(e._useUTC?Al:TP).apply(null,i),s=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[jt]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==s&&(Ze(e).weekdayMismatch=!0)}}function vD(e){var t,n,i,o,s,c,f,d,p;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(s=1,c=4,n=as(t.GG,e._a[fn],Bl(kt(),1,4).year),i=as(t.W,1),o=as(t.E,1),(o<1||o>7)&&(d=!0)):(s=e._locale._week.dow,c=e._locale._week.doy,p=Bl(kt(),s,c),n=as(t.gg,e._a[fn],p.year),i=as(t.w,p.week),t.d!=null?(o=t.d,(o<0||o>6)&&(d=!0)):t.e!=null?(o=t.e+s,(t.e<0||t.e>6)&&(d=!0)):o=s),i<1||i>ui(n,s,c)?Ze(e)._overflowWeeks=!0:d!=null?Ze(e)._overflowWeekday=!0:(f=Uy(n,i,o,s,c),e._a[fn]=f.year,e._dayOfYear=f.dayOfYear)}ge.ISO_8601=function(){},ge.RFC_2822=function(){};function dp(e){if(e._f===ge.ISO_8601){jy(e);return}if(e._f===ge.RFC_2822){qy(e);return}e._a=[],Ze(e).empty=!0;var t=""+e._i,n,i,o,s,c,f=t.length,d=0,p,_;for(o=Dy(e._f,e._locale).match(Xh)||[],_=o.length,n=0;n<_;n++)s=o[n],i=(t.match(iP(s,e))||[])[0],i&&(c=t.substr(0,t.indexOf(i)),c.length>0&&Ze(e).unusedInput.push(c),t=t.slice(t.indexOf(i)+i.length),d+=i.length),ns[s]?(i?Ze(e).empty=!1:Ze(e).unusedTokens.push(s),aP(s,i,e)):e._strict&&!i&&Ze(e).unusedTokens.push(s);Ze(e).charsLeftOver=f-d,t.length>0&&Ze(e).unusedInput.push(t),e._a[jt]<=12&&Ze(e).bigHour===!0&&e._a[jt]>0&&(Ze(e).bigHour=void 0),Ze(e).parsedDateParts=e._a.slice(0),Ze(e).meridiem=e._meridiem,e._a[jt]=gD(e._locale,e._a[jt],e._meridiem),p=Ze(e).era,p!==null&&(e._a[fn]=e._locale.erasConvertYear(p,e._a[fn])),fp(e),cp(e)}function gD(e,t,n){var i;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(i=e.isPM(n),i&&t<12&&(t+=12),!i&&t===12&&(t=0)),t)}function yD(e){var t,n,i,o,s,c,f=!1,d=e._f.length;if(d===0){Ze(e).invalidFormat=!0,e._d=new Date(NaN);return}for(o=0;o<d;o++)s=0,c=!1,t=Gh({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[o],dp(t),Wh(t)&&(c=!0),s+=Ze(t).charsLeftOver,s+=Ze(t).unusedTokens.length*10,Ze(t).score=s,f?s<i&&(i=s,n=t):(i==null||s<i||c)&&(i=s,n=t,c&&(f=!0));qi(e,n||t)}function SD(e){if(!e._d){var t=Qh(e._i),n=t.day===void 0?t.date:t.day;e._a=by([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(i){return i&&parseInt(i,10)}),fp(e)}}function wD(e){var t=new Ol(cp(Ky(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Ky(e){var t=e._i,n=e._f;return e._locale=e._locale||fi(e._l),t===null||n===void 0&&t===""?Ru({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),fr(t)?new Ol(cp(t)):(xl(t)?e._d=t:ur(n)?yD(e):n?dp(e):ED(e),Wh(e)||(e._d=null),e))}function ED(e){var t=e._i;Pn(t)?e._d=new Date(ge.now()):xl(t)?e._d=new Date(t.valueOf()):typeof t=="string"?_D(e):ur(t)?(e._a=by(t.slice(0),function(n){return parseInt(n,10)}),fp(e)):Ao(t)?SD(e):ai(t)?e._d=new Date(t):ge.createFromInputFallback(e)}function Xy(e,t,n,i,o){var s={};return(t===!0||t===!1)&&(i=t,t=void 0),(n===!0||n===!1)&&(i=n,n=void 0),(Ao(e)&&zh(e)||ur(e)&&e.length===0)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=o,s._l=n,s._i=e,s._f=t,s._strict=i,wD(s)}function kt(e,t,n,i){return Xy(e,t,n,i,!1)}var TD=Zn("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=kt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Ru()}),bD=Zn("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=kt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Ru()});function Jy(e,t){var n,i;if(t.length===1&&ur(t[0])&&(t=t[0]),!t.length)return kt();for(n=t[0],i=1;i<t.length;++i)(!t[i].isValid()||t[i][e](n))&&(n=t[i]);return n}function ND(){var e=[].slice.call(arguments,0);return Jy("isBefore",e)}function kD(){var e=[].slice.call(arguments,0);return Jy("isAfter",e)}var CD=function(){return Date.now?Date.now():+new Date},Yl=["year","quarter","month","week","day","hour","minute","second","millisecond"];function PD(e){var t,n=!1,i,o=Yl.length;for(t in e)if(ct(e,t)&&!(Mt.call(Yl,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(i=0;i<o;++i)if(e[Yl[i]]){if(n)return!1;parseFloat(e[Yl[i]])!==et(e[Yl[i]])&&(n=!0)}return!0}function DD(){return this._isValid}function xD(){return hr(NaN)}function Zu(e){var t=Qh(e),n=t.year||0,i=t.quarter||0,o=t.month||0,s=t.week||t.isoWeek||0,c=t.day||0,f=t.hour||0,d=t.minute||0,p=t.second||0,_=t.millisecond||0;this._isValid=PD(t),this._milliseconds=+_+p*1e3+d*6e4+f*1e3*60*60,this._days=+c+s*7,this._months=+o+i*3+n*12,this._data={},this._locale=fi(),this._bubble()}function Gu(e){return e instanceof Zu}function hp(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function OD(e,t,n){var i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),s=0,c;for(c=0;c<i;c++)et(e[c])!==et(t[c])&&s++;return s+o}function Qy(e,t){Ie(e,0,0,function(){var n=this.utcOffset(),i="+";return n<0&&(n=-n,i="-"),i+xr(~~(n/60),2)+t+xr(~~n%60,2)})}Qy("Z",":"),Qy("ZZ",""),Ne("Z",Yu),Ne("ZZ",Yu),_t(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=pp(Yu,e)});var ID=/([\+\-]|\d\d)/gi;function pp(e,t){var n=(t||"").match(e),i,o,s;return n===null?null:(i=n[n.length-1]||[],o=(i+"").match(ID)||["-",0,0],s=+(o[1]*60)+et(o[2]),s===0?0:o[0]==="+"?s:-s)}function _p(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(fr(e)||xl(e)?e.valueOf():kt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),ge.updateOffset(n,!1),n):kt(e).local()}function mp(e){return-Math.round(e._d.getTimezoneOffset())}ge.updateOffset=function(){};function RD(e,t,n){var i=this._offset||0,o;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=pp(Yu,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(o=mp(this)),this._offset=e,this._isUTC=!0,o!=null&&this.add(o,"m"),i!==e&&(!t||this._changeInProgress?r0(this,hr(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,ge.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?i:mp(this)}function LD(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function MD(e){return this.utcOffset(0,e)}function AD(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(mp(this),"m")),this}function BD(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=pp(nP,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function VD(e){return this.isValid()?(e=e?kt(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function FD(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function YD(){if(!Pn(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Gh(e,this),e=Ky(e),e._a?(t=e._isUTC?Pr(e._a):kt(e._a),this._isDSTShifted=this.isValid()&&OD(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function $D(){return this.isValid()?!this._isUTC:!1}function UD(){return this.isValid()?this._isUTC:!1}function e0(){return this.isValid()?this._isUTC&&this._offset===0:!1}var zD=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,HD=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function hr(e,t){var n=e,i=null,o,s,c;return Gu(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:ai(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(i=zD.exec(e))?(o=i[1]==="-"?-1:1,n={y:0,d:et(i[Or])*o,h:et(i[jt])*o,m:et(i[dr])*o,s:et(i[ci])*o,ms:et(hp(i[Bo]*1e3))*o}):(i=HD.exec(e))?(o=i[1]==="-"?-1:1,n={y:Vo(i[2],o),M:Vo(i[3],o),w:Vo(i[4],o),d:Vo(i[5],o),h:Vo(i[6],o),m:Vo(i[7],o),s:Vo(i[8],o)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(c=WD(kt(n.from),kt(n.to)),n={},n.ms=c.milliseconds,n.M=c.months),s=new Zu(n),Gu(e)&&ct(e,"_locale")&&(s._locale=e._locale),Gu(e)&&ct(e,"_isValid")&&(s._isValid=e._isValid),s}hr.fn=Zu.prototype,hr.invalid=xD;function Vo(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function t0(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 WD(e,t){var n;return e.isValid()&&t.isValid()?(t=_p(t,e),e.isBefore(t)?n=t0(e,t):(n=t0(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function n0(e,t){return function(n,i){var o,s;return i!==null&&!isNaN(+i)&&(Py(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."),s=n,n=i,i=s),o=hr(n,i),r0(this,o,e),this}}function r0(e,t,n,i){var o=t._milliseconds,s=hp(t._days),c=hp(t._months);e.isValid()&&(i=i??!0,c&&Fy(e,Ml(e,"Month")+c*n),s&&Ay(e,"Date",Ml(e,"Date")+s*n),o&&e._d.setTime(e._d.valueOf()+o*n),i&&ge.updateOffset(e,s||c))}var ZD=n0(1,"add"),GD=n0(-1,"subtract");function i0(e){return typeof e=="string"||e instanceof String}function jD(e){return fr(e)||xl(e)||i0(e)||ai(e)||KD(e)||qD(e)||e===null||e===void 0}function qD(e){var t=Ao(e)&&!zh(e),n=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o,s,c=i.length;for(o=0;o<c;o+=1)s=i[o],n=n||ct(e,s);return t&&n}function KD(e){var t=ur(e),n=!1;return t&&(n=e.filter(function(i){return!ai(i)&&i0(e)}).length===0),t&&n}function XD(e){var t=Ao(e)&&!zh(e),n=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],o,s;for(o=0;o<i.length;o+=1)s=i[o],n=n||ct(e,s);return t&&n}function JD(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 QD(e,t){arguments.length===1&&(arguments[0]?jD(arguments[0])?(e=arguments[0],t=void 0):XD(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||kt(),i=_p(n,this).startOf("day"),o=ge.calendarFormat(this,i)||"sameElse",s=t&&(Dr(t[o])?t[o].call(this,n):t[o]);return this.format(s||this.localeData().calendar(o,this,kt(n)))}function ex(){return new Ol(this)}function tx(e,t){var n=fr(e)?e:kt(e);return this.isValid()&&n.isValid()?(t=Gn(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function nx(e,t){var n=fr(e)?e:kt(e);return this.isValid()&&n.isValid()?(t=Gn(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function rx(e,t,n,i){var o=fr(e)?e:kt(e),s=fr(t)?t:kt(t);return this.isValid()&&o.isValid()&&s.isValid()?(i=i||"()",(i[0]==="("?this.isAfter(o,n):!this.isBefore(o,n))&&(i[1]===")"?this.isBefore(s,n):!this.isAfter(s,n))):!1}function ix(e,t){var n=fr(e)?e:kt(e),i;return this.isValid()&&n.isValid()?(t=Gn(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(t).valueOf()<=i&&i<=this.clone().endOf(t).valueOf())):!1}function ox(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function ax(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function sx(e,t,n){var i,o,s;if(!this.isValid())return NaN;if(i=_p(e,this),!i.isValid())return NaN;switch(o=(i.utcOffset()-this.utcOffset())*6e4,t=Gn(t),t){case"year":s=ju(this,i)/12;break;case"month":s=ju(this,i);break;case"quarter":s=ju(this,i)/3;break;case"second":s=(this-i)/1e3;break;case"minute":s=(this-i)/6e4;break;case"hour":s=(this-i)/36e5;break;case"day":s=(this-i-o)/864e5;break;case"week":s=(this-i-o)/6048e5;break;default:s=this-i}return n?s:jn(s)}function ju(e,t){if(e.date()<t.date())return-ju(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),i=e.clone().add(n,"months"),o,s;return t-i<0?(o=e.clone().add(n-1,"months"),s=(t-i)/(i-o)):(o=e.clone().add(n+1,"months"),s=(t-i)/(o-i)),-(n+s)||0}ge.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",ge.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function lx(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function cx(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?Mu(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Dr(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Mu(n,"Z")):Mu(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ux(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,i,o,s;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o="-MM-DD[T]HH:mm:ss.SSS",s=t+'[")]',this.format(n+i+o+s)}function fx(e){e||(e=this.isUtc()?ge.defaultFormatUtc:ge.defaultFormat);var t=Mu(this,e);return this.localeData().postformat(t)}function dx(e,t){return this.isValid()&&(fr(e)&&e.isValid()||kt(e).isValid())?hr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function hx(e){return this.from(kt(),e)}function px(e,t){return this.isValid()&&(fr(e)&&e.isValid()||kt(e).isValid())?hr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function _x(e){return this.to(kt(),e)}function o0(e){var t;return e===void 0?this._locale._abbr:(t=fi(e),t!=null&&(this._locale=t),this)}var a0=Zn("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 s0(){return this._locale}var qu=1e3,ss=60*qu,Ku=60*ss,l0=(365*400+97)*24*Ku;function ls(e,t){return(e%t+t)%t}function c0(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-l0:new Date(e,t,n).valueOf()}function u0(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-l0:Date.UTC(e,t,n)}function mx(e){var t,n;if(e=Gn(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?u0:c0,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-=ls(t+(this._isUTC?0:this.utcOffset()*ss),Ku);break;case"minute":t=this._d.valueOf(),t-=ls(t,ss);break;case"second":t=this._d.valueOf(),t-=ls(t,qu);break}return this._d.setTime(t),ge.updateOffset(this,!0),this}function vx(e){var t,n;if(e=Gn(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?u0:c0,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+=Ku-ls(t+(this._isUTC?0:this.utcOffset()*ss),Ku)-1;break;case"minute":t=this._d.valueOf(),t+=ss-ls(t,ss)-1;break;case"second":t=this._d.valueOf(),t+=qu-ls(t,qu)-1;break}return this._d.setTime(t),ge.updateOffset(this,!0),this}function gx(){return this._d.valueOf()-(this._offset||0)*6e4}function yx(){return Math.floor(this.valueOf()/1e3)}function Sx(){return new Date(this.valueOf())}function wx(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Ex(){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 Tx(){return this.isValid()?this.toISOString():null}function bx(){return Wh(this)}function Nx(){return qi({},Ze(this))}function kx(){return Ze(this).overflow}function Cx(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Ie("N",0,0,"eraAbbr"),Ie("NN",0,0,"eraAbbr"),Ie("NNN",0,0,"eraAbbr"),Ie("NNNN",0,0,"eraName"),Ie("NNNNN",0,0,"eraNarrow"),Ie("y",["y",1],"yo","eraYear"),Ie("y",["yy",2],0,"eraYear"),Ie("y",["yyy",3],0,"eraYear"),Ie("y",["yyyy",4],0,"eraYear"),Ne("N",vp),Ne("NN",vp),Ne("NNN",vp),Ne("NNNN",Vx),Ne("NNNNN",Fx),_t(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,i){var o=n._locale.erasParse(e,i,n._strict);o?Ze(n).era=o:Ze(n).invalidEra=e}),Ne("y",rs),Ne("yy",rs),Ne("yyy",rs),Ne("yyyy",rs),Ne("yo",Yx),_t(["y","yy","yyy","yyyy"],fn),_t(["yo"],function(e,t,n,i){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[fn]=n._locale.eraYearOrdinalParse(e,o):t[fn]=parseInt(e,10)});function Px(e,t){var n,i,o,s=this._eras||fi("en")._eras;for(n=0,i=s.length;n<i;++n){switch(typeof s[n].since){case"string":o=ge(s[n].since).startOf("day"),s[n].since=o.valueOf();break}switch(typeof s[n].until){case"undefined":s[n].until=1/0;break;case"string":o=ge(s[n].until).startOf("day").valueOf(),s[n].until=o.valueOf();break}}return s}function Dx(e,t,n){var i,o,s=this.eras(),c,f,d;for(e=e.toUpperCase(),i=0,o=s.length;i<o;++i)if(c=s[i].name.toUpperCase(),f=s[i].abbr.toUpperCase(),d=s[i].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(f===e)return s[i];break;case"NNNN":if(c===e)return s[i];break;case"NNNNN":if(d===e)return s[i];break}else if([c,f,d].indexOf(e)>=0)return s[i]}function xx(e,t){var n=e.since<=e.until?1:-1;return t===void 0?ge(e.since).year():ge(e.since).year()+(t-e.offset)*n}function Ox(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until||i[e].until<=n&&n<=i[e].since)return i[e].name;return""}function Ix(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until||i[e].until<=n&&n<=i[e].since)return i[e].narrow;return""}function Rx(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until||i[e].until<=n&&n<=i[e].since)return i[e].abbr;return""}function Lx(){var e,t,n,i,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,i=this.clone().startOf("day").valueOf(),o[e].since<=i&&i<=o[e].until||o[e].until<=i&&i<=o[e].since)return(this.year()-ge(o[e].since).year())*n+o[e].offset;return this.year()}function Mx(e){return ct(this,"_erasNameRegex")||gp.call(this),e?this._erasNameRegex:this._erasRegex}function Ax(e){return ct(this,"_erasAbbrRegex")||gp.call(this),e?this._erasAbbrRegex:this._erasRegex}function Bx(e){return ct(this,"_erasNarrowRegex")||gp.call(this),e?this._erasNarrowRegex:this._erasRegex}function vp(e,t){return t.erasAbbrRegex(e)}function Vx(e,t){return t.erasNameRegex(e)}function Fx(e,t){return t.erasNarrowRegex(e)}function Yx(e,t){return t._eraYearOrdinalRegex||rs}function gp(){var e=[],t=[],n=[],i=[],o,s,c,f,d,p=this.eras();for(o=0,s=p.length;o<s;++o)c=si(p[o].name),f=si(p[o].abbr),d=si(p[o].narrow),t.push(c),e.push(f),n.push(d),i.push(c),i.push(f),i.push(d);this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}Ie(0,["gg",2],0,function(){return this.weekYear()%100}),Ie(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Xu(e,t){Ie(0,[e,e.length],0,t)}Xu("gggg","weekYear"),Xu("ggggg","weekYear"),Xu("GGGG","isoWeekYear"),Xu("GGGGG","isoWeekYear"),Ne("G",Fu),Ne("g",Fu),Ne("GG",Nt,An),Ne("gg",Nt,An),Ne("GGGG",tp,ep),Ne("gggg",tp,ep),Ne("GGGGG",Vu,Au),Ne("ggggg",Vu,Au),Rl(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=et(e)}),Rl(["gg","GG"],function(e,t,n,i){t[i]=ge.parseTwoDigitYear(e)});function $x(e){return f0.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Ux(e){return f0.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function zx(){return ui(this.year(),1,4)}function Hx(){return ui(this.isoWeekYear(),1,4)}function Wx(){var e=this.localeData()._week;return ui(this.year(),e.dow,e.doy)}function Zx(){var e=this.localeData()._week;return ui(this.weekYear(),e.dow,e.doy)}function f0(e,t,n,i,o){var s;return e==null?Bl(this,i,o).year:(s=ui(e,i,o),t>s&&(t=s),Gx.call(this,e,t,n,i,o))}function Gx(e,t,n,i,o){var s=Uy(e,t,n,i,o),c=Al(s.year,0,s.dayOfYear);return this.year(c.getUTCFullYear()),this.month(c.getUTCMonth()),this.date(c.getUTCDate()),this}Ie("Q",0,"Qo","quarter"),Ne("Q",Oy),_t("Q",function(e,t){t[li]=(et(e)-1)*3});function jx(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Ie("D",["DD",2],"Do","date"),Ne("D",Nt,is),Ne("DD",Nt,An),Ne("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),_t(["D","DD"],Or),_t("Do",function(e,t){t[Or]=et(e.match(Nt)[0])});var d0=os("Date",!0);Ie("DDD",["DDDD",3],"DDDo","dayOfYear"),Ne("DDD",Bu),Ne("DDDD",Iy),_t(["DDD","DDDD"],function(e,t,n){n._dayOfYear=et(e)});function qx(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}Ie("m",["mm",2],0,"minute"),Ne("m",Nt,np),Ne("mm",Nt,An),_t(["m","mm"],dr);var Kx=os("Minutes",!1);Ie("s",["ss",2],0,"second"),Ne("s",Nt,np),Ne("ss",Nt,An),_t(["s","ss"],ci);var Xx=os("Seconds",!1);Ie("S",0,0,function(){return~~(this.millisecond()/100)}),Ie(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Ie(0,["SSS",3],0,"millisecond"),Ie(0,["SSSS",4],0,function(){return this.millisecond()*10}),Ie(0,["SSSSS",5],0,function(){return this.millisecond()*100}),Ie(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),Ie(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),Ie(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),Ie(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Ne("S",Bu,Oy),Ne("SS",Bu,An),Ne("SSS",Bu,Iy);var Xi,h0;for(Xi="SSSS";Xi.length<=9;Xi+="S")Ne(Xi,rs);function Jx(e,t){t[Bo]=et(("0."+e)*1e3)}for(Xi="S";Xi.length<=9;Xi+="S")_t(Xi,Jx);h0=os("Milliseconds",!1),Ie("z",0,0,"zoneAbbr"),Ie("zz",0,0,"zoneName");function Qx(){return this._isUTC?"UTC":""}function e1(){return this._isUTC?"Coordinated Universal Time":""}var ue=Ol.prototype;ue.add=ZD,ue.calendar=QD,ue.clone=ex,ue.diff=sx,ue.endOf=vx,ue.format=fx,ue.from=dx,ue.fromNow=hx,ue.to=px,ue.toNow=_x,ue.get=uP,ue.invalidAt=kx,ue.isAfter=tx,ue.isBefore=nx,ue.isBetween=rx,ue.isSame=ix,ue.isSameOrAfter=ox,ue.isSameOrBefore=ax,ue.isValid=bx,ue.lang=a0,ue.locale=o0,ue.localeData=s0,ue.max=bD,ue.min=TD,ue.parsingFlags=Nx,ue.set=fP,ue.startOf=mx,ue.subtract=GD,ue.toArray=wx,ue.toObject=Ex,ue.toDate=Sx,ue.toISOString=cx,ue.inspect=ux,typeof Symbol<"u"&&Symbol.for!=null&&(ue[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ue.toJSON=Tx,ue.toString=lx,ue.unix=yx,ue.valueOf=gx,ue.creationData=Cx,ue.eraName=Ox,ue.eraNarrow=Ix,ue.eraAbbr=Rx,ue.eraYear=Lx,ue.year=My,ue.isLeapYear=cP,ue.weekYear=$x,ue.isoWeekYear=Ux,ue.quarter=ue.quarters=jx,ue.month=Yy,ue.daysInMonth=SP,ue.week=ue.weeks=PP,ue.isoWeek=ue.isoWeeks=DP,ue.weeksInYear=Wx,ue.weeksInWeekYear=Zx,ue.isoWeeksInYear=zx,ue.isoWeeksInISOWeekYear=Hx,ue.date=d0,ue.day=ue.days=UP,ue.weekday=zP,ue.isoWeekday=HP,ue.dayOfYear=qx,ue.hour=ue.hours=XP,ue.minute=ue.minutes=Kx,ue.second=ue.seconds=Xx,ue.millisecond=ue.milliseconds=h0,ue.utcOffset=RD,ue.utc=MD,ue.local=AD,ue.parseZone=BD,ue.hasAlignedHourOffset=VD,ue.isDST=FD,ue.isLocal=$D,ue.isUtcOffset=UD,ue.isUtc=e0,ue.isUTC=e0,ue.zoneAbbr=Qx,ue.zoneName=e1,ue.dates=Zn("dates accessor is deprecated. Use date instead.",d0),ue.months=Zn("months accessor is deprecated. Use month instead",Yy),ue.years=Zn("years accessor is deprecated. Use year instead",My),ue.zone=Zn("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",LD),ue.isDSTShifted=Zn("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",YD);function t1(e){return kt(e*1e3)}function n1(){return kt.apply(null,arguments).parseZone()}function p0(e){return e}var ut=qh.prototype;ut.calendar=$C,ut.longDateFormat=WC,ut.invalidDate=GC,ut.ordinal=KC,ut.preparse=p0,ut.postformat=p0,ut.relativeTime=JC,ut.pastFuture=QC,ut.set=FC,ut.eras=Px,ut.erasParse=Dx,ut.erasConvertYear=xx,ut.erasAbbrRegex=Ax,ut.erasNameRegex=Mx,ut.erasNarrowRegex=Bx,ut.months=mP,ut.monthsShort=vP,ut.monthsParse=yP,ut.monthsRegex=EP,ut.monthsShortRegex=wP,ut.week=bP,ut.firstDayOfYear=CP,ut.firstDayOfWeek=kP,ut.weekdays=BP,ut.weekdaysMin=FP,ut.weekdaysShort=VP,ut.weekdaysParse=$P,ut.weekdaysRegex=WP,ut.weekdaysShortRegex=ZP,ut.weekdaysMinRegex=GP,ut.isPM=qP,ut.meridiem=JP;function Ju(e,t,n,i){var o=fi(),s=Pr().set(i,t);return o[n](s,e)}function _0(e,t,n){if(ai(e)&&(t=e,e=void 0),e=e||"",t!=null)return Ju(e,t,n,"month");var i,o=[];for(i=0;i<12;i++)o[i]=Ju(e,i,n,"month");return o}function yp(e,t,n,i){typeof e=="boolean"?(ai(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,ai(t)&&(n=t,t=void 0),t=t||"");var o=fi(),s=e?o._week.dow:0,c,f=[];if(n!=null)return Ju(t,(n+s)%7,i,"day");for(c=0;c<7;c++)f[c]=Ju(t,(c+s)%7,i,"day");return f}function r1(e,t){return _0(e,t,"months")}function i1(e,t){return _0(e,t,"monthsShort")}function o1(e,t,n){return yp(e,t,n,"weekdays")}function a1(e,t,n){return yp(e,t,n,"weekdaysShort")}function s1(e,t,n){return yp(e,t,n,"weekdaysMin")}Ki("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=et(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}}),ge.lang=Zn("moment.lang is deprecated. Use moment.locale instead.",Ki),ge.langData=Zn("moment.langData is deprecated. Use moment.localeData instead.",fi);var di=Math.abs;function l1(){var e=this._data;return this._milliseconds=di(this._milliseconds),this._days=di(this._days),this._months=di(this._months),e.milliseconds=di(e.milliseconds),e.seconds=di(e.seconds),e.minutes=di(e.minutes),e.hours=di(e.hours),e.months=di(e.months),e.years=di(e.years),this}function m0(e,t,n,i){var o=hr(t,n);return e._milliseconds+=i*o._milliseconds,e._days+=i*o._days,e._months+=i*o._months,e._bubble()}function c1(e,t){return m0(this,e,t,1)}function u1(e,t){return m0(this,e,t,-1)}function v0(e){return e<0?Math.floor(e):Math.ceil(e)}function f1(){var e=this._milliseconds,t=this._days,n=this._months,i=this._data,o,s,c,f,d;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=v0(Sp(n)+t)*864e5,t=0,n=0),i.milliseconds=e%1e3,o=jn(e/1e3),i.seconds=o%60,s=jn(o/60),i.minutes=s%60,c=jn(s/60),i.hours=c%24,t+=jn(c/24),d=jn(g0(t)),n+=d,t-=v0(Sp(d)),f=jn(n/12),n%=12,i.days=t,i.months=n,i.years=f,this}function g0(e){return e*4800/146097}function Sp(e){return e*146097/4800}function d1(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if(e=Gn(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+i/864e5,n=this._months+g0(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Sp(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return t*24+i/36e5;case"minute":return t*1440+i/6e4;case"second":return t*86400+i/1e3;case"millisecond":return Math.floor(t*864e5)+i;default:throw new Error("Unknown unit "+e)}}function hi(e){return function(){return this.as(e)}}var y0=hi("ms"),h1=hi("s"),p1=hi("m"),_1=hi("h"),m1=hi("d"),v1=hi("w"),g1=hi("M"),y1=hi("Q"),S1=hi("y"),w1=y0;function E1(){return hr(this)}function T1(e){return e=Gn(e),this.isValid()?this[e+"s"]():NaN}function Fo(e){return function(){return this.isValid()?this._data[e]:NaN}}var b1=Fo("milliseconds"),N1=Fo("seconds"),k1=Fo("minutes"),C1=Fo("hours"),P1=Fo("days"),D1=Fo("months"),x1=Fo("years");function O1(){return jn(this.days()/7)}var pi=Math.round,cs={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function I1(e,t,n,i,o){return o.relativeTime(t||1,!!n,e,i)}function R1(e,t,n,i){var o=hr(e).abs(),s=pi(o.as("s")),c=pi(o.as("m")),f=pi(o.as("h")),d=pi(o.as("d")),p=pi(o.as("M")),_=pi(o.as("w")),v=pi(o.as("y")),y=s<=n.ss&&["s",s]||s<n.s&&["ss",s]||c<=1&&["m"]||c<n.m&&["mm",c]||f<=1&&["h"]||f<n.h&&["hh",f]||d<=1&&["d"]||d<n.d&&["dd",d];return n.w!=null&&(y=y||_<=1&&["w"]||_<n.w&&["ww",_]),y=y||p<=1&&["M"]||p<n.M&&["MM",p]||v<=1&&["y"]||["yy",v],y[2]=t,y[3]=+e>0,y[4]=i,I1.apply(null,y)}function L1(e){return e===void 0?pi:typeof e=="function"?(pi=e,!0):!1}function M1(e,t){return cs[e]===void 0?!1:t===void 0?cs[e]:(cs[e]=t,e==="s"&&(cs.ss=t-1),!0)}function A1(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,i=cs,o,s;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(i=Object.assign({},cs,t),t.s!=null&&t.ss==null&&(i.ss=t.s-1)),o=this.localeData(),s=R1(this,!n,i,o),n&&(s=o.pastFuture(+this,s)),o.postformat(s)}var wp=Math.abs;function us(e){return(e>0)-(e<0)||+e}function Qu(){if(!this.isValid())return this.localeData().invalidDate();var e=wp(this._milliseconds)/1e3,t=wp(this._days),n=wp(this._months),i,o,s,c,f=this.asSeconds(),d,p,_,v;return f?(i=jn(e/60),o=jn(i/60),e%=60,i%=60,s=jn(n/12),n%=12,c=e?e.toFixed(3).replace(/\.?0+$/,""):"",d=f<0?"-":"",p=us(this._months)!==us(f)?"-":"",_=us(this._days)!==us(f)?"-":"",v=us(this._milliseconds)!==us(f)?"-":"",d+"P"+(s?p+s+"Y":"")+(n?p+n+"M":"")+(t?_+t+"D":"")+(o||i||e?"T":"")+(o?v+o+"H":"")+(i?v+i+"M":"")+(e?v+c+"S":"")):"P0D"}var it=Zu.prototype;it.isValid=DD,it.abs=l1,it.add=c1,it.subtract=u1,it.as=d1,it.asMilliseconds=y0,it.asSeconds=h1,it.asMinutes=p1,it.asHours=_1,it.asDays=m1,it.asWeeks=v1,it.asMonths=g1,it.asQuarters=y1,it.asYears=S1,it.valueOf=w1,it._bubble=f1,it.clone=E1,it.get=T1,it.milliseconds=b1,it.seconds=N1,it.minutes=k1,it.hours=C1,it.days=P1,it.weeks=O1,it.months=D1,it.years=x1,it.humanize=A1,it.toISOString=Qu,it.toString=Qu,it.toJSON=Qu,it.locale=o0,it.localeData=s0,it.toIsoString=Zn("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Qu),it.lang=a0,Ie("X",0,0,"unix"),Ie("x",0,0,"valueOf"),Ne("x",Fu),Ne("X",rP),_t("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)}),_t("x",function(e,t,n){n._d=new Date(et(e))});//! moment.js
51
- ge.version="2.30.1",BC(kt),ge.fn=ue,ge.min=ND,ge.max=kD,ge.now=CD,ge.utc=Pr,ge.unix=t1,ge.months=r1,ge.isDate=xl,ge.locale=Ki,ge.invalid=Ru,ge.duration=hr,ge.isMoment=fr,ge.weekdays=o1,ge.parseZone=n1,ge.localeData=fi,ge.isDuration=Gu,ge.monthsShort=i1,ge.weekdaysMin=s1,ge.defineLocale=lp,ge.updateLocale=nD,ge.locales=rD,ge.weekdaysShort=a1,ge.normalizeUnits=Gn,ge.relativeTimeRounding=L1,ge.relativeTimeThreshold=M1,ge.calendarFormat=JD,ge.prototype=ue,ge.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 B1=["title"],V1=l.defineComponent({__name:"CapeSingleValue",props:{fieldValuePair:{},link:{}},setup(e){const t=e,n=l.computed(()=>t.fieldValuePair.field),i=l.computed(()=>{let o=`${t.fieldValuePair.value}`;return t.fieldValuePair.field.type=="date"&&(o=ge(o).format("dddd, D MMMM YYYY")),o});return(o,s)=>{const c=l.resolveComponent("cape-link-value");return l.openBlock(),l.createElementBlock("span",{class:"cape-single-value",title:n.value.description},[o.link?(l.openBlock(),l.createBlock(c,{key:0,"field-value-pair":o.fieldValuePair},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(i.value),1)]),_:1},8,["field-value-pair"])):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(l.toDisplayString(i.value),1)],64))],8,B1)}}}),F1={class:"cape-filter-label"},Y1=["for"],$1={class:"cape-filter-mode"},U1={class:"cape-filter-term"},z1=["id","placeholder"],H1=["id","placeholder"],W1=l.defineComponent({__name:"CapeFilterFieldText",props:{filterId:{}},setup(e){const t=e,n=Yt(),i=l.computed(()=>n.byId(t.filterId)),o=l.computed(()=>i.value.field);return(s,c)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",F1,[l.createElementVNode("label",{for:"cape-filter-field-input-"+i.value.id,"data-test":"filter-label"},l.toDisplayString(i.value.field.label),9,Y1)]),l.createElementVNode("div",$1,[i.value.field.changeFilterMode?l.withDirectives((l.openBlock(),l.createElementBlock("select",{key:0,"onUpdate:modelValue":c[0]||(c[0]=f=>i.value.mode=f),"data-test":"filter-mode-select","aria-label":"Filter mode"},c[3]||(c[3]=[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)]),512)),[[l.vModelSelect,i.value.mode]]):l.createCommentVNode("",!0)]),l.createElementVNode("div",U1,[i.value.mode==="contains"?l.withDirectives((l.openBlock(),l.createElementBlock("input",{key:0,id:"cape-filter-field-input-"+i.value.id,"onUpdate:modelValue":c[1]||(c[1]=f=>i.value.term=f),placeholder:o.value.placeholderContains,class:"cape-filter-field-text-term","data-test":"filter-term-input"},null,8,z1)),[[l.vModelText,i.value.term]]):l.createCommentVNode("",!0),i.value.mode==="is"?l.withDirectives((l.openBlock(),l.createElementBlock("input",{key:1,id:"cape-filter-field-input-"+i.value.id,"onUpdate:modelValue":c[2]||(c[2]=f=>i.value.term=f),placeholder:o.value.placeholderIs,class:"cape-filter-field-text-term","data-test":"filter-term-input"},null,8,H1)),[[l.vModelText,i.value.term]]):l.createCommentVNode("",!0)])],64))}}),Z1={class:"cape-filter-label"},G1=["for"],j1={class:"cape-filter-wide-term"},q1=["id","placeholder"],K1=l.defineComponent({__name:"CapeFilterFreeText",props:{filterId:{}},setup(e){const t=e,n=Yt(),i=l.computed(()=>n.byId(t.filterId));return(o,s)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",Z1,[l.createElementVNode("label",{for:"cape-filter-input-"+i.value.id},"Search",8,G1)]),l.createElementVNode("div",j1,[l.withDirectives(l.createElementVNode("input",{id:"cape-filter-input-"+i.value.id,"onUpdate:modelValue":s[0]||(s[0]=c=>i.value.term=c),placeholder:i.value.placeholder,class:"cape-filter-freetext-term","data-test":"filter-term-input"},null,8,q1),[[l.vModelText,i.value.term]])])],64))}}),X1={key:0,class:"cape-sort-order","data-test":"cape-sort-order"},J1=["for"],Q1={class:"cape-sort-order-controls"},eO=["id"],tO=["value"],nO=["id"],rO=["value"],iO=["value"],oO=l.defineComponent({__name:"CapeSortOrder",props:{idDistinguisher:{type:String,required:!0}},setup(e){const t=nn(),n=mn(),i=e,o=l.computed(()=>`cape-sort-order-${i.idDistinguisher}`),s=l.computed(()=>`cape-sort-order-direction-${i.idDistinguisher}`);return(c,f)=>l.unref(n).hasSortFields&&l.unref(n).visibleCount>0?(l.openBlock(),l.createElementBlock("div",X1,[l.createElementVNode("label",{for:o.value},"Order results by: ",8,J1),l.createElementVNode("div",Q1,[l.withDirectives(l.createElementVNode("select",{id:o.value,class:"cape-sort-order-field","onUpdate:modelValue":f[0]||(f[0]=d=>l.unref(n).sortFieldId=d)},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(t).sortableFields,d=>(l.openBlock(),l.createElementBlock("option",{key:d.id,value:d.id},l.toDisplayString(d.label),9,tO))),128))],8,eO),[[l.vModelSelect,l.unref(n).sortFieldId]]),l.withDirectives(l.createElementVNode("select",{class:"cape-sort-order-direction","onUpdate:modelValue":f[1]||(f[1]=d=>l.unref(n).sortDirection=d),"aria-label":"Sort direction",id:s.value},[l.createElementVNode("option",{value:l.unref(Gi).Ascending},"Ascending",8,rO),l.createElementVNode("option",{value:l.unref(Gi).Descending},"Descending",8,iO)],8,nO),[[l.vModelSelect,l.unref(n).sortDirection]])])])):l.createCommentVNode("",!0)}}),aO={class:"cape-filter-label"},sO=["for"],lO={class:"cape-filter-mode"},cO={class:"cape-filter-term"},uO=l.defineComponent({__name:"CapeFilterFieldEnum",props:{filterId:{}},setup(e){const t=e,i=Yt().byId(t.filterId),o=i.field;return(s,c)=>{const f=l.resolveComponent("cape-filter-field-enum-one-of-checkbox"),d=l.resolveComponent("cape-filter-field-enum-one-of-multiselect"),p=l.resolveComponent("cape-filter-field-enum-is-select"),_=l.resolveComponent("cape-filter-field-enum-is-radio");return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",aO,[l.createElementVNode("label",{for:"cape-filter-field-input-"+l.unref(i).id,"data-test":"filter-label"},l.toDisplayString(l.unref(i).field.label),9,sO)]),l.createElementVNode("div",lO,[l.unref(i).field.changeFilterMode?l.withDirectives((l.openBlock(),l.createElementBlock("select",{key:0,"onUpdate:modelValue":c[0]||(c[0]=v=>l.unref(i).mode=v),"data-test":"filter-mode-select","aria-label":"Filter mode"},c[1]||(c[1]=[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)]),512)),[[l.vModelSelect,l.unref(i).mode]]):l.createCommentVNode("",!0)]),l.createElementVNode("div",cO,[l.unref(i).mode==="oneOf"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.unref(o).filterInputStyleOnOneOf==="checkbox"?(l.openBlock(),l.createBlock(f,{key:0,"filter-id":s.filterId},null,8,["filter-id"])):(l.openBlock(),l.createBlock(d,{key:1,"filter-id":s.filterId},null,8,["filter-id"]))],64)):l.createCommentVNode("",!0),l.unref(i).mode==="is"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.unref(o).filterInputStyleOnIs==="select"?(l.openBlock(),l.createBlock(p,{key:0,"filter-id":s.filterId},null,8,["filter-id"])):(l.openBlock(),l.createBlock(_,{key:1,"filter-id":s.filterId},null,8,["filter-id"]))],64)):l.createCommentVNode("",!0)])],64)}}}),fO={class:"cape-filter-label"},dO=["for"],hO={class:"cape-filter-mode"},pO={class:"cape-filter-term"},_O=["id","placeholder","min","max","step"],mO=["id","placeholder","min","max","step"],vO=["id","placeholder","min","max","step"],gO=l.defineComponent({__name:"CapeFilterFieldInteger",props:{filterId:{}},setup(e){const t=e,n=Yt(),i=l.computed(()=>n.byId(t.filterId)),o=l.computed(()=>i.value.field);return(s,c)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",fO,[l.createElementVNode("label",{for:"cape-filter-field-input-"+i.value.id,"data-test":"filter-label"},l.toDisplayString(i.value.field.label),9,dO)]),l.createElementVNode("div",hO,[i.value.field.changeFilterMode?l.withDirectives((l.openBlock(),l.createElementBlock("select",{key:0,"onUpdate:modelValue":c[0]||(c[0]=f=>i.value.mode=f),"data-test":"filter-mode-select","aria-label":"Filter mode"},c[4]||(c[4]=[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)]),512)),[[l.vModelSelect,i.value.mode]]):l.createCommentVNode("",!0)]),l.createElementVNode("div",pO,[i.value.mode==="between"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.withDirectives(l.createElementVNode("input",{id:"cape-filter-field-input-lower-bound-"+i.value.id,"onUpdate:modelValue":c[1]||(c[1]=f=>i.value.lowerBoundTerm=f),placeholder:Array.isArray(o.value.placeholderBetween)?o.value.placeholderBetween[0]:"",type:"number",min:o.value.min,max:o.value.max,step:o.value.step,class:"cape-filter-field-integer-term-lower-bound","data-test":"filter-term-input-lower-bound"},null,8,_O),[[l.vModelText,i.value.lowerBoundTerm]]),c[5]||(c[5]=l.createElementVNode("span",{class:"cape-filter-field-integer-term-term-and"},"and",-1)),l.withDirectives(l.createElementVNode("input",{id:"cape-filter-field-input-upper-bound-"+i.value.id,"onUpdate:modelValue":c[2]||(c[2]=f=>i.value.upperBoundTerm=f),placeholder:Array.isArray(o.value.placeholderBetween)?o.value.placeholderBetween[1]:"",type:"number",min:o.value.min,max:o.value.max,step:o.value.step,class:"cape-filter-field-integer-term-upper-bound","data-test":"filter-term-input-upper-bound"},null,8,mO),[[l.vModelText,i.value.upperBoundTerm]])],64)):l.createCommentVNode("",!0),i.value.mode==="is"?l.withDirectives((l.openBlock(),l.createElementBlock("input",{key:1,id:"cape-filter-field-input-"+i.value.id,"onUpdate:modelValue":c[3]||(c[3]=f=>i.value.isTerm=f),placeholder:o.value.placeholderIs,type:"number",min:o.value.min,max:o.value.max,step:o.value.step,class:"cape-filter-field-integer-term","data-test":"filter-term-input"},null,8,vO)),[[l.vModelText,i.value.isTerm]]):l.createCommentVNode("",!0)])],64))}}),yO={class:"cape-filter-label"},SO=["for"],wO={class:"cape-filter-mode"},EO={class:"cape-filter-term"},TO=["id","placeholder"],bO=["id","placeholder"],NO=["id","placeholder"],kO=l.defineComponent({__name:"CapeFilterFieldDate",props:{filterId:{}},setup(e){const t=e,n=Yt(),i=l.computed(()=>n.byId(t.filterId)),o=l.computed(()=>i.value.field);return(s,c)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",yO,[l.createElementVNode("label",{for:"cape-filter-field-input-"+i.value.id,"data-test":"filter-label"},l.toDisplayString(i.value.field.label),9,SO)]),l.createElementVNode("div",wO,[i.value.field.changeFilterMode?l.withDirectives((l.openBlock(),l.createElementBlock("select",{key:0,"onUpdate:modelValue":c[0]||(c[0]=f=>i.value.mode=f),"data-test":"filter-mode-select","aria-label":"Filter mode"},c[4]||(c[4]=[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)]),512)),[[l.vModelSelect,i.value.mode]]):l.createCommentVNode("",!0)]),l.createElementVNode("div",EO,[i.value.mode==="between"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.withDirectives(l.createElementVNode("input",{id:"cape-filter-field-input-lower-bound-"+i.value.id,"onUpdate:modelValue":c[1]||(c[1]=f=>i.value.lowerBoundTerm=f),placeholder:Array.isArray(o.value.placeholderBetween)?o.value.placeholderBetween[0]:"",class:"cape-filter-field-date-term-term-lower-bound","data-test":"filter-term-input-lower-bound"},null,8,TO),[[l.vModelText,i.value.lowerBoundTerm]]),c[5]||(c[5]=l.createElementVNode("span",{class:"cape-filter-field-date-term-term-and"},"and",-1)),l.withDirectives(l.createElementVNode("input",{id:"cape-filter-field-input-upper-bound-"+i.value.id,"onUpdate:modelValue":c[2]||(c[2]=f=>i.value.upperBoundTerm=f),placeholder:Array.isArray(o.value.placeholderBetween)?o.value.placeholderBetween[1]:"",class:"cape-filter-field-date-term-term-upper-bound","data-test":"filter-term-input-upper-bound"},null,8,bO),[[l.vModelText,i.value.upperBoundTerm]])],64)):l.createCommentVNode("",!0),i.value.mode==="is"?l.withDirectives((l.openBlock(),l.createElementBlock("input",{key:1,id:"cape-filter-field-input-"+i.value.id,type:"date","onUpdate:modelValue":c[3]||(c[3]=f=>i.value.isTerm=f),placeholder:o.value.placeholderIs,class:"cape-filter-field-date-term-term","data-test":"filter-term-input"},null,8,NO)),[[l.vModelText,i.value.isTerm]]):l.createCommentVNode("",!0)])],64))}}),CO={class:"cape-results-controls flex justify-between"},PO={class:"flex justify-start"},DO={key:0,class:"cape-show-all-results-toggle switch switch-sm"},xO=["for"],OO=l.defineComponent({__name:"CapeResultsControls",props:{idDistinguisher:{}},setup(e){const t=e,n=mn(),i=l.computed(()=>!n.allResultsAreVisible||n.showAllResults),o=l.computed(()=>`cape-show-all-results-toggle-${t.idDistinguisher}`);return(s,c)=>{const f=l.resolveComponent("cape-results-info"),d=l.resolveComponent("cape-show-all-results-toggle"),p=l.resolveComponent("cape-sort-order");return l.openBlock(),l.createElementBlock("div",CO,[l.createElementVNode("div",PO,[l.createVNode(f),i.value?(l.openBlock(),l.createElementBlock("div",DO,[l.createVNode(d,{class:"cape-results-toggle",id:o.value},null,8,["id"]),l.createElementVNode("label",{for:o.value},"Show All Results",8,xO)])):l.createCommentVNode("",!0)]),l.createVNode(p,{"id-distinguisher":s.idDistinguisher},null,8,["id-distinguisher"])])}}}),IO=ji(l.defineComponent({__name:"CapeGoTopResults",setup(e){function t(){const n=document.querySelector(".cape-results-controls-top");n&&n.scrollIntoView({behavior:"smooth"})}return(n,i)=>(l.openBlock(),l.createElementBlock("button",{class:"jump-to-results",onClick:t}," Jump to top results "))}}),[["__scopeId","data-v-bae5fe18"]]),RO=["href"],LO=l.defineComponent({__name:"CapeExternalLinkValue",props:{url:String},setup(e){const t=e,{url:n}=t,i=l.computed(()=>n?n.length<=80?n:n.slice(0,40)+"‥"+n.slice(-39):"");return(o,s)=>l.unref(n)?(l.openBlock(),l.createElementBlock("a",{key:0,href:l.unref(n),target:"_blank",rel:"noopener noreferrer"},l.toDisplayString(i.value),9,RO)):l.createCommentVNode("",!0)}});function MO(e,t,n){const i=new Blob([new Uint8Array([239,187,191]),t],{type:n});if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveBlob(i,e);else{const o=window.document.createElement("a");o.href=window.URL.createObjectURL(i),o.download=e,document.body.appendChild(o),o.click(),document.body.removeChild(o)}}function AO(){const e=[[]],t=es(),n=oi();return t.all.forEach(i=>e[0].push(i.label)),n.all.forEach(i=>{e.push(t.all.map(o=>{const s=i[o.id].value??"";return o.isMultiple&&Array.isArray(s)?s.join("; "):`${s}`}))}),e}function BO(e){return e.map(n=>'"'+n.map(o=>{let s="";return o!=null&&(s=o.toString()),s.replace(/"/g,'""').replace(/\r\n/g,`
51
+ ge.version="2.30.1",BC(kt),ge.fn=ue,ge.min=ND,ge.max=kD,ge.now=CD,ge.utc=Pr,ge.unix=t1,ge.months=r1,ge.isDate=xl,ge.locale=Ki,ge.invalid=Ru,ge.duration=hr,ge.isMoment=fr,ge.weekdays=o1,ge.parseZone=n1,ge.localeData=fi,ge.isDuration=Gu,ge.monthsShort=i1,ge.weekdaysMin=s1,ge.defineLocale=lp,ge.updateLocale=nD,ge.locales=rD,ge.weekdaysShort=a1,ge.normalizeUnits=Gn,ge.relativeTimeRounding=L1,ge.relativeTimeThreshold=M1,ge.calendarFormat=JD,ge.prototype=ue,ge.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 B1=["title"],V1=l.defineComponent({__name:"CapeSingleValue",props:{fieldValuePair:{},link:{}},setup(e){const t=e,n=l.computed(()=>t.fieldValuePair.field),i=l.computed(()=>{let o=`${t.fieldValuePair.value}`;return t.fieldValuePair.field.type=="date"&&(o=ge(o).format("dddd, D MMMM YYYY")),o});return(o,s)=>{const c=l.resolveComponent("cape-link-value");return l.openBlock(),l.createElementBlock("span",{class:"cape-single-value",title:n.value.description},[o.link?(l.openBlock(),l.createBlock(c,{key:0,"field-value-pair":o.fieldValuePair},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(i.value),1)]),_:1},8,["field-value-pair"])):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(l.toDisplayString(i.value),1)],64))],8,B1)}}}),F1={class:"cape-filter-label"},Y1=["for"],$1={class:"cape-filter-mode"},U1={class:"cape-filter-term"},z1=["id","placeholder"],H1=["id","placeholder"],W1=l.defineComponent({__name:"CapeFilterFieldText",props:{filterId:{}},setup(e){const t=e,n=Yt(),i=l.computed(()=>n.byId(t.filterId)),o=l.computed(()=>i.value.field);return(s,c)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",F1,[l.createElementVNode("label",{for:"cape-filter-field-input-"+i.value.id,"data-test":"filter-label"},l.toDisplayString(i.value.field.label),9,Y1)]),l.createElementVNode("div",$1,[i.value.field.changeFilterMode?l.withDirectives((l.openBlock(),l.createElementBlock("select",{key:0,"onUpdate:modelValue":c[0]||(c[0]=f=>i.value.mode=f),"data-test":"filter-mode-select","aria-label":"Filter mode"},c[3]||(c[3]=[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)]),512)),[[l.vModelSelect,i.value.mode]]):l.createCommentVNode("",!0)]),l.createElementVNode("div",U1,[i.value.mode==="contains"?l.withDirectives((l.openBlock(),l.createElementBlock("input",{key:0,id:"cape-filter-field-input-"+i.value.id,"onUpdate:modelValue":c[1]||(c[1]=f=>i.value.term=f),placeholder:o.value.placeholderContains,class:"cape-filter-field-text-term","data-test":"filter-term-input"},null,8,z1)),[[l.vModelText,i.value.term]]):l.createCommentVNode("",!0),i.value.mode==="is"?l.withDirectives((l.openBlock(),l.createElementBlock("input",{key:1,id:"cape-filter-field-input-"+i.value.id,"onUpdate:modelValue":c[2]||(c[2]=f=>i.value.term=f),placeholder:o.value.placeholderIs,class:"cape-filter-field-text-term","data-test":"filter-term-input"},null,8,H1)),[[l.vModelText,i.value.term]]):l.createCommentVNode("",!0)])],64))}}),Z1={class:"cape-filter-label"},G1=["for"],j1={class:"cape-filter-wide-term"},q1=["id","placeholder"],K1=l.defineComponent({__name:"CapeFilterFreeText",props:{filterId:{}},setup(e){const t=e,n=Yt(),i=l.computed(()=>n.byId(t.filterId));return(o,s)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",Z1,[l.createElementVNode("label",{for:"cape-filter-input-"+i.value.id},"Search",8,G1)]),l.createElementVNode("div",j1,[l.withDirectives(l.createElementVNode("input",{id:"cape-filter-input-"+i.value.id,"onUpdate:modelValue":s[0]||(s[0]=c=>i.value.term=c),placeholder:i.value.placeholder,class:"cape-filter-freetext-term","data-test":"filter-term-input"},null,8,q1),[[l.vModelText,i.value.term]])])],64))}}),X1={key:0,class:"cape-sort-order","data-test":"cape-sort-order"},J1=["for"],Q1={class:"cape-sort-order-controls"},eO=["id"],tO=["value"],nO=["id"],rO=["value"],iO=["value"],oO=l.defineComponent({__name:"CapeSortOrder",props:{idDistinguisher:{type:String,required:!0}},setup(e){const t=nn(),n=mn(),i=e,o=l.computed(()=>`cape-sort-order-${i.idDistinguisher}`),s=l.computed(()=>`cape-sort-order-direction-${i.idDistinguisher}`);return(c,f)=>l.unref(n).hasSortFields&&l.unref(n).visibleCount>0?(l.openBlock(),l.createElementBlock("div",X1,[l.createElementVNode("label",{for:o.value},"Order results by: ",8,J1),l.createElementVNode("div",Q1,[l.withDirectives(l.createElementVNode("select",{id:o.value,class:"cape-sort-order-field","onUpdate:modelValue":f[0]||(f[0]=d=>l.unref(n).sortFieldId=d)},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(t).sortableFields,d=>(l.openBlock(),l.createElementBlock("option",{key:d.id,value:d.id},l.toDisplayString(d.label),9,tO))),128))],8,eO),[[l.vModelSelect,l.unref(n).sortFieldId]]),l.withDirectives(l.createElementVNode("select",{class:"cape-sort-order-direction","onUpdate:modelValue":f[1]||(f[1]=d=>l.unref(n).sortDirection=d),"aria-label":"Sort direction",id:s.value},[l.createElementVNode("option",{value:l.unref(Gi).Ascending},"Ascending",8,rO),l.createElementVNode("option",{value:l.unref(Gi).Descending},"Descending",8,iO)],8,nO),[[l.vModelSelect,l.unref(n).sortDirection]])])])):l.createCommentVNode("",!0)}}),aO={class:"cape-filter-label"},sO=["for"],lO={class:"cape-filter-mode"},cO={class:"cape-filter-term"},uO=l.defineComponent({__name:"CapeFilterFieldEnum",props:{filterId:{}},setup(e){const t=e,i=Yt().byId(t.filterId),o=i.field;return(s,c)=>{const f=l.resolveComponent("cape-filter-field-enum-one-of-checkbox"),d=l.resolveComponent("cape-filter-field-enum-one-of-multiselect"),p=l.resolveComponent("cape-filter-field-enum-is-select"),_=l.resolveComponent("cape-filter-field-enum-is-radio");return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",aO,[l.createElementVNode("label",{for:"cape-filter-field-input-"+l.unref(i).id,"data-test":"filter-label"},l.toDisplayString(l.unref(i).field.label),9,sO)]),l.createElementVNode("div",lO,[l.unref(i).field.changeFilterMode?l.withDirectives((l.openBlock(),l.createElementBlock("select",{key:0,"onUpdate:modelValue":c[0]||(c[0]=v=>l.unref(i).mode=v),"data-test":"filter-mode-select","aria-label":"Filter mode"},c[1]||(c[1]=[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)]),512)),[[l.vModelSelect,l.unref(i).mode]]):l.createCommentVNode("",!0)]),l.createElementVNode("div",cO,[l.unref(i).mode==="oneOf"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.unref(o).filterInputStyleOnOneOf==="checkbox"?(l.openBlock(),l.createBlock(f,{key:0,"filter-id":s.filterId},null,8,["filter-id"])):(l.openBlock(),l.createBlock(d,{key:1,"filter-id":s.filterId},null,8,["filter-id"]))],64)):l.createCommentVNode("",!0),l.unref(i).mode==="is"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.unref(o).filterInputStyleOnIs==="select"?(l.openBlock(),l.createBlock(p,{key:0,"filter-id":s.filterId},null,8,["filter-id"])):(l.openBlock(),l.createBlock(_,{key:1,"filter-id":s.filterId},null,8,["filter-id"]))],64)):l.createCommentVNode("",!0)])],64)}}}),fO={class:"cape-filter-label"},dO=["for"],hO={class:"cape-filter-mode"},pO={class:"cape-filter-term"},_O=["id","placeholder","min","max","step"],mO=["id","placeholder","min","max","step"],vO=["id","placeholder","min","max","step"],gO=l.defineComponent({__name:"CapeFilterFieldInteger",props:{filterId:{}},setup(e){const t=e,n=Yt(),i=l.computed(()=>n.byId(t.filterId)),o=l.computed(()=>i.value.field);return(s,c)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",fO,[l.createElementVNode("label",{for:"cape-filter-field-input-"+i.value.id,"data-test":"filter-label"},l.toDisplayString(i.value.field.label),9,dO)]),l.createElementVNode("div",hO,[i.value.field.changeFilterMode?l.withDirectives((l.openBlock(),l.createElementBlock("select",{key:0,"onUpdate:modelValue":c[0]||(c[0]=f=>i.value.mode=f),"data-test":"filter-mode-select","aria-label":"Filter mode"},c[4]||(c[4]=[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)]),512)),[[l.vModelSelect,i.value.mode]]):l.createCommentVNode("",!0)]),l.createElementVNode("div",pO,[i.value.mode==="between"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.withDirectives(l.createElementVNode("input",{id:"cape-filter-field-input-lower-bound-"+i.value.id,"onUpdate:modelValue":c[1]||(c[1]=f=>i.value.lowerBoundTerm=f),placeholder:Array.isArray(o.value.placeholderBetween)?o.value.placeholderBetween[0]:"",type:"number",min:o.value.min,max:o.value.max,step:o.value.step,class:"cape-filter-field-integer-term-lower-bound","data-test":"filter-term-input-lower-bound"},null,8,_O),[[l.vModelText,i.value.lowerBoundTerm]]),c[5]||(c[5]=l.createElementVNode("span",{class:"cape-filter-field-integer-term-term-and"},"and",-1)),l.withDirectives(l.createElementVNode("input",{id:"cape-filter-field-input-upper-bound-"+i.value.id,"onUpdate:modelValue":c[2]||(c[2]=f=>i.value.upperBoundTerm=f),placeholder:Array.isArray(o.value.placeholderBetween)?o.value.placeholderBetween[1]:"",type:"number",min:o.value.min,max:o.value.max,step:o.value.step,class:"cape-filter-field-integer-term-upper-bound","data-test":"filter-term-input-upper-bound"},null,8,mO),[[l.vModelText,i.value.upperBoundTerm]])],64)):l.createCommentVNode("",!0),i.value.mode==="is"?l.withDirectives((l.openBlock(),l.createElementBlock("input",{key:1,id:"cape-filter-field-input-"+i.value.id,"onUpdate:modelValue":c[3]||(c[3]=f=>i.value.isTerm=f),placeholder:o.value.placeholderIs,type:"number",min:o.value.min,max:o.value.max,step:o.value.step,class:"cape-filter-field-integer-term","data-test":"filter-term-input"},null,8,vO)),[[l.vModelText,i.value.isTerm]]):l.createCommentVNode("",!0)])],64))}}),yO={class:"cape-filter-label"},SO=["for"],wO={class:"cape-filter-mode"},EO={class:"cape-filter-term"},TO=["id","placeholder"],bO=["id","placeholder"],NO=["id","placeholder"],kO=l.defineComponent({__name:"CapeFilterFieldDate",props:{filterId:{}},setup(e){const t=e,n=Yt(),i=l.computed(()=>n.byId(t.filterId)),o=l.computed(()=>i.value.field);return(s,c)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",yO,[l.createElementVNode("label",{for:"cape-filter-field-input-"+i.value.id,"data-test":"filter-label"},l.toDisplayString(i.value.field.label),9,SO)]),l.createElementVNode("div",wO,[i.value.field.changeFilterMode?l.withDirectives((l.openBlock(),l.createElementBlock("select",{key:0,"onUpdate:modelValue":c[0]||(c[0]=f=>i.value.mode=f),"data-test":"filter-mode-select","aria-label":"Filter mode"},c[4]||(c[4]=[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)]),512)),[[l.vModelSelect,i.value.mode]]):l.createCommentVNode("",!0)]),l.createElementVNode("div",EO,[i.value.mode==="between"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.withDirectives(l.createElementVNode("input",{id:"cape-filter-field-input-lower-bound-"+i.value.id,"onUpdate:modelValue":c[1]||(c[1]=f=>i.value.lowerBoundTerm=f),placeholder:Array.isArray(o.value.placeholderBetween)?o.value.placeholderBetween[0]:"",class:"cape-filter-field-date-term-term-lower-bound","data-test":"filter-term-input-lower-bound"},null,8,TO),[[l.vModelText,i.value.lowerBoundTerm]]),c[5]||(c[5]=l.createElementVNode("span",{class:"cape-filter-field-date-term-term-and"},"and",-1)),l.withDirectives(l.createElementVNode("input",{id:"cape-filter-field-input-upper-bound-"+i.value.id,"onUpdate:modelValue":c[2]||(c[2]=f=>i.value.upperBoundTerm=f),placeholder:Array.isArray(o.value.placeholderBetween)?o.value.placeholderBetween[1]:"",class:"cape-filter-field-date-term-term-upper-bound","data-test":"filter-term-input-upper-bound"},null,8,bO),[[l.vModelText,i.value.upperBoundTerm]])],64)):l.createCommentVNode("",!0),i.value.mode==="is"?l.withDirectives((l.openBlock(),l.createElementBlock("input",{key:1,id:"cape-filter-field-input-"+i.value.id,type:"date","onUpdate:modelValue":c[3]||(c[3]=f=>i.value.isTerm=f),placeholder:o.value.placeholderIs,class:"cape-filter-field-date-term-term","data-test":"filter-term-input"},null,8,NO)),[[l.vModelText,i.value.isTerm]]):l.createCommentVNode("",!0)])],64))}}),CO={class:"cape-results-controls flex justify-between"},PO={class:"flex justify-start flex-col md:flex-row"},DO={key:0,class:"cape-show-all-results-toggle switch switch-sm"},xO=["for"],OO=l.defineComponent({__name:"CapeResultsControls",props:{idDistinguisher:{}},setup(e){const t=e,n=mn(),i=l.computed(()=>!n.allResultsAreVisible||n.showAllResults),o=l.computed(()=>`cape-show-all-results-toggle-${t.idDistinguisher}`);return(s,c)=>{const f=l.resolveComponent("cape-results-info"),d=l.resolveComponent("cape-show-all-results-toggle"),p=l.resolveComponent("cape-sort-order");return l.openBlock(),l.createElementBlock("div",CO,[l.createElementVNode("div",PO,[l.createVNode(f),i.value?(l.openBlock(),l.createElementBlock("div",DO,[l.createVNode(d,{class:"cape-results-toggle",id:o.value},null,8,["id"]),l.createElementVNode("label",{for:o.value},"Show All Results",8,xO)])):l.createCommentVNode("",!0)]),l.createVNode(p,{"id-distinguisher":s.idDistinguisher},null,8,["id-distinguisher"])])}}}),IO=ji(l.defineComponent({__name:"CapeGoTopResults",setup(e){function t(){const n=document.querySelector(".cape-results-controls-top");n&&n.scrollIntoView({behavior:"smooth"})}return(n,i)=>(l.openBlock(),l.createElementBlock("button",{class:"jump-to-results",onClick:t}," Jump to top results "))}}),[["__scopeId","data-v-bae5fe18"]]),RO=["href"],LO=l.defineComponent({__name:"CapeExternalLinkValue",props:{url:String},setup(e){const t=e,{url:n}=t,i=l.computed(()=>n?n.length<=80?n:n.slice(0,40)+"‥"+n.slice(-39):"");return(o,s)=>l.unref(n)?(l.openBlock(),l.createElementBlock("a",{key:0,href:l.unref(n),target:"_blank",rel:"noopener noreferrer"},l.toDisplayString(i.value),9,RO)):l.createCommentVNode("",!0)}});function MO(e,t,n){const i=new Blob([new Uint8Array([239,187,191]),t],{type:n});if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveBlob(i,e);else{const o=window.document.createElement("a");o.href=window.URL.createObjectURL(i),o.download=e,document.body.appendChild(o),o.click(),document.body.removeChild(o)}}function AO(){const e=[[]],t=es(),n=oi();return t.all.forEach(i=>e[0].push(i.label)),n.all.forEach(i=>{e.push(t.all.map(o=>{const s=i[o.id].value??"";return o.isMultiple&&Array.isArray(s)?s.join("; "):`${s}`}))}),e}function BO(e){return e.map(n=>'"'+n.map(o=>{let s="";return o!=null&&(s=o.toString()),s.replace(/"/g,'""').replace(/\r\n/g,`
52
52
  `)}).join('","')+`"
53
53
  `).join("")}const VO=l.defineComponent({__name:"CapeDownloadCsvButton",setup(e){function t(){const n=AO(),i=BO(n);MO("download.csv",i,"text/csv;charset=utf-8")}return(n,i)=>(l.openBlock(),l.createElementBlock("a",{onClick:t,class:"cursor-pointer cape-button"},"Download CSV"))}}),FO={},YO={href:"/site-data.json",class:"cape-button"};function $O(e,t){return l.openBlock(),l.createElementBlock("a",YO,"Download JSON")}const UO=ji(FO,[["render",$O]]),zO={class:"cape-fields-table"},HO={key:0},WO=l.defineComponent({__name:"CapeFieldsTable",setup(e){const t=es(),n=l.computed(()=>t.all);return(i,o)=>(l.openBlock(),l.createElementBlock("table",zO,[o[0]||(o[0]=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)),l.createElementVNode("tbody",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.value,s=>(l.openBlock(),l.createElementBlock("tr",{key:s.id},[l.createElementVNode("td",null,l.toDisplayString(s.id),1),l.createElementVNode("td",null,l.toDisplayString(s.label),1),l.createElementVNode("td",null,[l.createTextVNode(l.toDisplayString(s.type)+" ",1),s.isMultiple?(l.openBlock(),l.createElementBlock("span",HO," list")):l.createCommentVNode("",!0)]),l.createElementVNode("td",null,l.toDisplayString(s.description),1)]))),128))])]))}});function ZO(e){const n=nn().idField.id;return"/record/"+encodeURIComponent(`${e[n].value}`)}const GO=l.defineComponent({__name:"CapeRecordLink",props:{record:{}},setup(e){const t=e,n=l.computed(()=>ZO(t.record));return(i,o)=>{const s=l.resolveComponent("router-link");return l.openBlock(),l.createBlock(s,{to:n.value},{default:l.withCtx(()=>[l.renderSlot(i.$slots,"default")]),_:3},8,["to"])}}});function jO(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $l={exports:{}};/* @preserve
54
54
  * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
55
55
  * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
56
- */var qO=$l.exports,S0;function KO(){return S0||(S0=1,function(e,t){(function(n,i){i(t)})(qO,function(n){var i="1.9.4";function o(r){var a,u,h,m;for(u=1,h=arguments.length;u<h;u++){m=arguments[u];for(a in m)r[a]=m[a]}return r}var s=Object.create||function(){function r(){}return function(a){return r.prototype=a,new r}}();function c(r,a){var u=Array.prototype.slice;if(r.bind)return r.bind.apply(r,u.call(arguments,1));var h=u.call(arguments,2);return function(){return r.apply(a,h.length?h.concat(u.call(arguments)):arguments)}}var f=0;function d(r){return"_leaflet_id"in r||(r._leaflet_id=++f),r._leaflet_id}function p(r,a,u){var h,m,S,D;return D=function(){h=!1,m&&(S.apply(u,m),m=!1)},S=function(){h?m=arguments:(r.apply(u,arguments),setTimeout(D,a),h=!0)},S}function _(r,a,u){var h=a[1],m=a[0],S=h-m;return r===h&&u?r:((r-m)%S+S)%S+m}function v(){return!1}function y(r,a){if(a===!1)return r;var u=Math.pow(10,a===void 0?6:a);return Math.round(r*u)/u}function g(r){return r.trim?r.trim():r.replace(/^\s+|\s+$/g,"")}function E(r){return g(r).split(/\s+/)}function w(r,a){Object.prototype.hasOwnProperty.call(r,"options")||(r.options=r.options?s(r.options):{});for(var u in a)r.options[u]=a[u];return r.options}function T(r,a,u){var h=[];for(var m in r)h.push(encodeURIComponent(u?m.toUpperCase():m)+"="+encodeURIComponent(r[m]));return(!a||a.indexOf("?")===-1?"?":"&")+h.join("&")}var b=/\{ *([\w_ -]+) *\}/g;function C(r,a){return r.replace(b,function(u,h){var m=a[h];if(m===void 0)throw new Error("No value provided for variable "+u);return typeof m=="function"&&(m=m(a)),m})}var M=Array.isArray||function(r){return Object.prototype.toString.call(r)==="[object Array]"};function z(r,a){for(var u=0;u<r.length;u++)if(r[u]===a)return u;return-1}var G="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function oe(r){return window["webkit"+r]||window["moz"+r]||window["ms"+r]}var R=0;function F(r){var a=+new Date,u=Math.max(0,16-(a-R));return R=a+u,window.setTimeout(r,u)}var Q=window.requestAnimationFrame||oe("RequestAnimationFrame")||F,A=window.cancelAnimationFrame||oe("CancelAnimationFrame")||oe("CancelRequestAnimationFrame")||function(r){window.clearTimeout(r)};function B(r,a,u){if(u&&Q===F)r.call(a);else return Q.call(window,c(r,a))}function ae(r){r&&A.call(window,r)}var he={__proto__:null,extend:o,create:s,bind:c,get lastId(){return f},stamp:d,throttle:p,wrapNum:_,falseFn:v,formatNum:y,trim:g,splitWords:E,setOptions:w,getParamString:T,template:C,isArray:M,indexOf:z,emptyImageUrl:G,requestFn:Q,cancelFn:A,requestAnimFrame:B,cancelAnimFrame:ae};function P(){}P.extend=function(r){var a=function(){w(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},u=a.__super__=this.prototype,h=s(u);h.constructor=a,a.prototype=h;for(var m in this)Object.prototype.hasOwnProperty.call(this,m)&&m!=="prototype"&&m!=="__super__"&&(a[m]=this[m]);return r.statics&&o(a,r.statics),r.includes&&(V(r.includes),o.apply(null,[h].concat(r.includes))),o(h,r),delete h.statics,delete h.includes,h.options&&(h.options=u.options?s(u.options):{},o(h.options,r.options)),h._initHooks=[],h.callInitHooks=function(){if(!this._initHooksCalled){u.callInitHooks&&u.callInitHooks.call(this),this._initHooksCalled=!0;for(var S=0,D=h._initHooks.length;S<D;S++)h._initHooks[S].call(this)}},a},P.include=function(r){var a=this.prototype.options;return o(this.prototype,r),r.options&&(this.prototype.options=a,this.mergeOptions(r.options)),this},P.mergeOptions=function(r){return o(this.prototype.options,r),this},P.addInitHook=function(r){var a=Array.prototype.slice.call(arguments,1),u=typeof r=="function"?r:function(){this[r].apply(this,a)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(u),this};function V(r){if(!(typeof L>"u"||!L||!L.Mixin)){r=M(r)?r:[r];for(var a=0;a<r.length;a++)r[a]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var K={on:function(r,a,u){if(typeof r=="object")for(var h in r)this._on(h,r[h],a);else{r=E(r);for(var m=0,S=r.length;m<S;m++)this._on(r[m],a,u)}return this},off:function(r,a,u){if(!arguments.length)delete this._events;else if(typeof r=="object")for(var h in r)this._off(h,r[h],a);else{r=E(r);for(var m=arguments.length===1,S=0,D=r.length;S<D;S++)m?this._off(r[S]):this._off(r[S],a,u)}return this},_on:function(r,a,u,h){if(typeof a!="function"){console.warn("wrong listener type: "+typeof a);return}if(this._listens(r,a,u)===!1){u===this&&(u=void 0);var m={fn:a,ctx:u};h&&(m.once=!0),this._events=this._events||{},this._events[r]=this._events[r]||[],this._events[r].push(m)}},_off:function(r,a,u){var h,m,S;if(this._events&&(h=this._events[r],!!h)){if(arguments.length===1){if(this._firingCount)for(m=0,S=h.length;m<S;m++)h[m].fn=v;delete this._events[r];return}if(typeof a!="function"){console.warn("wrong listener type: "+typeof a);return}var D=this._listens(r,a,u);if(D!==!1){var $=h[D];this._firingCount&&($.fn=v,this._events[r]=h=h.slice()),h.splice(D,1)}}},fire:function(r,a,u){if(!this.listens(r,u))return this;var h=o({},a,{type:r,target:this,sourceTarget:a&&a.sourceTarget||this});if(this._events){var m=this._events[r];if(m){this._firingCount=this._firingCount+1||1;for(var S=0,D=m.length;S<D;S++){var $=m[S],Z=$.fn;$.once&&this.off(r,Z,$.ctx),Z.call($.ctx||this,h)}this._firingCount--}}return u&&this._propagateEvent(h),this},listens:function(r,a,u,h){typeof r!="string"&&console.warn('"string" type argument expected');var m=a;typeof a!="function"&&(h=!!a,m=void 0,u=void 0);var S=this._events&&this._events[r];if(S&&S.length&&this._listens(r,m,u)!==!1)return!0;if(h){for(var D in this._eventParents)if(this._eventParents[D].listens(r,a,u,h))return!0}return!1},_listens:function(r,a,u){if(!this._events)return!1;var h=this._events[r]||[];if(!a)return!!h.length;u===this&&(u=void 0);for(var m=0,S=h.length;m<S;m++)if(h[m].fn===a&&h[m].ctx===u)return m;return!1},once:function(r,a,u){if(typeof r=="object")for(var h in r)this._on(h,r[h],a,!0);else{r=E(r);for(var m=0,S=r.length;m<S;m++)this._on(r[m],a,u,!0)}return this},addEventParent:function(r){return this._eventParents=this._eventParents||{},this._eventParents[d(r)]=r,this},removeEventParent:function(r){return this._eventParents&&delete this._eventParents[d(r)],this},_propagateEvent:function(r){for(var a in this._eventParents)this._eventParents[a].fire(r.type,o({layer:r.target,propagatedFrom:r.target},r),!0)}};K.addEventListener=K.on,K.removeEventListener=K.clearAllEventListeners=K.off,K.addOneTimeEventListener=K.once,K.fireEvent=K.fire,K.hasEventListeners=K.listens;var W=P.extend(K);function x(r,a,u){this.x=u?Math.round(r):r,this.y=u?Math.round(a):a}var ve=Math.trunc||function(r){return r>0?Math.floor(r):Math.ceil(r)};x.prototype={clone:function(){return new x(this.x,this.y)},add:function(r){return this.clone()._add(re(r))},_add:function(r){return this.x+=r.x,this.y+=r.y,this},subtract:function(r){return this.clone()._subtract(re(r))},_subtract:function(r){return this.x-=r.x,this.y-=r.y,this},divideBy:function(r){return this.clone()._divideBy(r)},_divideBy:function(r){return this.x/=r,this.y/=r,this},multiplyBy:function(r){return this.clone()._multiplyBy(r)},_multiplyBy:function(r){return this.x*=r,this.y*=r,this},scaleBy:function(r){return new x(this.x*r.x,this.y*r.y)},unscaleBy:function(r){return new x(this.x/r.x,this.y/r.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=ve(this.x),this.y=ve(this.y),this},distanceTo:function(r){r=re(r);var a=r.x-this.x,u=r.y-this.y;return Math.sqrt(a*a+u*u)},equals:function(r){return r=re(r),r.x===this.x&&r.y===this.y},contains:function(r){return r=re(r),Math.abs(r.x)<=Math.abs(this.x)&&Math.abs(r.y)<=Math.abs(this.y)},toString:function(){return"Point("+y(this.x)+", "+y(this.y)+")"}};function re(r,a,u){return r instanceof x?r:M(r)?new x(r[0],r[1]):r==null?r:typeof r=="object"&&"x"in r&&"y"in r?new x(r.x,r.y):new x(r,a,u)}function _e(r,a){if(r)for(var u=a?[r,a]:r,h=0,m=u.length;h<m;h++)this.extend(u[h])}_e.prototype={extend:function(r){var a,u;if(!r)return this;if(r instanceof x||typeof r[0]=="number"||"x"in r)a=u=re(r);else if(r=N(r),a=r.min,u=r.max,!a||!u)return this;return!this.min&&!this.max?(this.min=a.clone(),this.max=u.clone()):(this.min.x=Math.min(a.x,this.min.x),this.max.x=Math.max(u.x,this.max.x),this.min.y=Math.min(a.y,this.min.y),this.max.y=Math.max(u.y,this.max.y)),this},getCenter:function(r){return re((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,r)},getBottomLeft:function(){return re(this.min.x,this.max.y)},getTopRight:function(){return re(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(r){var a,u;return typeof r[0]=="number"||r instanceof x?r=re(r):r=N(r),r instanceof _e?(a=r.min,u=r.max):a=u=r,a.x>=this.min.x&&u.x<=this.max.x&&a.y>=this.min.y&&u.y<=this.max.y},intersects:function(r){r=N(r);var a=this.min,u=this.max,h=r.min,m=r.max,S=m.x>=a.x&&h.x<=u.x,D=m.y>=a.y&&h.y<=u.y;return S&&D},overlaps:function(r){r=N(r);var a=this.min,u=this.max,h=r.min,m=r.max,S=m.x>a.x&&h.x<u.x,D=m.y>a.y&&h.y<u.y;return S&&D},isValid:function(){return!!(this.min&&this.max)},pad:function(r){var a=this.min,u=this.max,h=Math.abs(a.x-u.x)*r,m=Math.abs(a.y-u.y)*r;return N(re(a.x-h,a.y-m),re(u.x+h,u.y+m))},equals:function(r){return r?(r=N(r),this.min.equals(r.getTopLeft())&&this.max.equals(r.getBottomRight())):!1}};function N(r,a){return!r||r instanceof _e?r:new _e(r,a)}function U(r,a){if(r)for(var u=a?[r,a]:r,h=0,m=u.length;h<m;h++)this.extend(u[h])}U.prototype={extend:function(r){var a=this._southWest,u=this._northEast,h,m;if(r instanceof H)h=r,m=r;else if(r instanceof U){if(h=r._southWest,m=r._northEast,!h||!m)return this}else return r?this.extend(ie(r)||k(r)):this;return!a&&!u?(this._southWest=new H(h.lat,h.lng),this._northEast=new H(m.lat,m.lng)):(a.lat=Math.min(h.lat,a.lat),a.lng=Math.min(h.lng,a.lng),u.lat=Math.max(m.lat,u.lat),u.lng=Math.max(m.lng,u.lng)),this},pad:function(r){var a=this._southWest,u=this._northEast,h=Math.abs(a.lat-u.lat)*r,m=Math.abs(a.lng-u.lng)*r;return new U(new H(a.lat-h,a.lng-m),new H(u.lat+h,u.lng+m))},getCenter:function(){return new H((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new H(this.getNorth(),this.getWest())},getSouthEast:function(){return new H(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(r){typeof r[0]=="number"||r instanceof H||"lat"in r?r=ie(r):r=k(r);var a=this._southWest,u=this._northEast,h,m;return r instanceof U?(h=r.getSouthWest(),m=r.getNorthEast()):h=m=r,h.lat>=a.lat&&m.lat<=u.lat&&h.lng>=a.lng&&m.lng<=u.lng},intersects:function(r){r=k(r);var a=this._southWest,u=this._northEast,h=r.getSouthWest(),m=r.getNorthEast(),S=m.lat>=a.lat&&h.lat<=u.lat,D=m.lng>=a.lng&&h.lng<=u.lng;return S&&D},overlaps:function(r){r=k(r);var a=this._southWest,u=this._northEast,h=r.getSouthWest(),m=r.getNorthEast(),S=m.lat>a.lat&&h.lat<u.lat,D=m.lng>a.lng&&h.lng<u.lng;return S&&D},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(r,a){return r?(r=k(r),this._southWest.equals(r.getSouthWest(),a)&&this._northEast.equals(r.getNorthEast(),a)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function k(r,a){return r instanceof U?r:new U(r,a)}function H(r,a,u){if(isNaN(r)||isNaN(a))throw new Error("Invalid LatLng object: ("+r+", "+a+")");this.lat=+r,this.lng=+a,u!==void 0&&(this.alt=+u)}H.prototype={equals:function(r,a){if(!r)return!1;r=ie(r);var u=Math.max(Math.abs(this.lat-r.lat),Math.abs(this.lng-r.lng));return u<=(a===void 0?1e-9:a)},toString:function(r){return"LatLng("+y(this.lat,r)+", "+y(this.lng,r)+")"},distanceTo:function(r){return X.distance(this,ie(r))},wrap:function(){return X.wrapLatLng(this)},toBounds:function(r){var a=180*r/40075017,u=a/Math.cos(Math.PI/180*this.lat);return k([this.lat-a,this.lng-u],[this.lat+a,this.lng+u])},clone:function(){return new H(this.lat,this.lng,this.alt)}};function ie(r,a,u){return r instanceof H?r:M(r)&&typeof r[0]!="object"?r.length===3?new H(r[0],r[1],r[2]):r.length===2?new H(r[0],r[1]):null:r==null?r:typeof r=="object"&&"lat"in r?new H(r.lat,"lng"in r?r.lng:r.lon,r.alt):a===void 0?null:new H(r,a,u)}var O={latLngToPoint:function(r,a){var u=this.projection.project(r),h=this.scale(a);return this.transformation._transform(u,h)},pointToLatLng:function(r,a){var u=this.scale(a),h=this.transformation.untransform(r,u);return this.projection.unproject(h)},project:function(r){return this.projection.project(r)},unproject:function(r){return this.projection.unproject(r)},scale:function(r){return 256*Math.pow(2,r)},zoom:function(r){return Math.log(r/256)/Math.LN2},getProjectedBounds:function(r){if(this.infinite)return null;var a=this.projection.bounds,u=this.scale(r),h=this.transformation.transform(a.min,u),m=this.transformation.transform(a.max,u);return new _e(h,m)},infinite:!1,wrapLatLng:function(r){var a=this.wrapLng?_(r.lng,this.wrapLng,!0):r.lng,u=this.wrapLat?_(r.lat,this.wrapLat,!0):r.lat,h=r.alt;return new H(u,a,h)},wrapLatLngBounds:function(r){var a=r.getCenter(),u=this.wrapLatLng(a),h=a.lat-u.lat,m=a.lng-u.lng;if(h===0&&m===0)return r;var S=r.getSouthWest(),D=r.getNorthEast(),$=new H(S.lat-h,S.lng-m),Z=new H(D.lat-h,D.lng-m);return new U($,Z)}},X=o({},O,{wrapLng:[-180,180],R:6371e3,distance:function(r,a){var u=Math.PI/180,h=r.lat*u,m=a.lat*u,S=Math.sin((a.lat-r.lat)*u/2),D=Math.sin((a.lng-r.lng)*u/2),$=S*S+Math.cos(h)*Math.cos(m)*D*D,Z=2*Math.atan2(Math.sqrt($),Math.sqrt(1-$));return this.R*Z}}),J=6378137,fe={R:J,MAX_LATITUDE:85.0511287798,project:function(r){var a=Math.PI/180,u=this.MAX_LATITUDE,h=Math.max(Math.min(u,r.lat),-u),m=Math.sin(h*a);return new x(this.R*r.lng*a,this.R*Math.log((1+m)/(1-m))/2)},unproject:function(r){var a=180/Math.PI;return new H((2*Math.atan(Math.exp(r.y/this.R))-Math.PI/2)*a,r.x*a/this.R)},bounds:function(){var r=J*Math.PI;return new _e([-r,-r],[r,r])}()};function Oe(r,a,u,h){if(M(r)){this._a=r[0],this._b=r[1],this._c=r[2],this._d=r[3];return}this._a=r,this._b=a,this._c=u,this._d=h}Oe.prototype={transform:function(r,a){return this._transform(r.clone(),a)},_transform:function(r,a){return a=a||1,r.x=a*(this._a*r.x+this._b),r.y=a*(this._c*r.y+this._d),r},untransform:function(r,a){return a=a||1,new x((r.x/a-this._b)/this._a,(r.y/a-this._d)/this._c)}};function Ge(r,a,u,h){return new Oe(r,a,u,h)}var we=o({},X,{code:"EPSG:3857",projection:fe,transformation:function(){var r=.5/(Math.PI*fe.R);return Ge(r,.5,-r,.5)}()}),be=o({},we,{code:"EPSG:900913"});function ze(r){return document.createElementNS("http://www.w3.org/2000/svg",r)}function Wt(r,a){var u="",h,m,S,D,$,Z;for(h=0,S=r.length;h<S;h++){for($=r[h],m=0,D=$.length;m<D;m++)Z=$[m],u+=(m?"L":"M")+Z.x+" "+Z.y;u+=a?xe.svg?"z":"x":""}return u||"M0 0"}var dt=document.documentElement.style,q="ActiveXObject"in window,me=q&&!document.addEventListener,Pe="msLaunchUri"in navigator&&!("documentMode"in document),Ee=ln("webkit"),I=ln("android"),j=ln("android 2")||ln("android 3"),ne=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),te=I&&ln("Google")&&ne<537&&!("AudioNode"in window),le=!!window.opera,ke=!Pe&&ln("chrome"),De=ln("gecko")&&!Ee&&!le&&!q,He=!ke&&ln("safari"),Me=ln("phantom"),at="OTransition"in dt,vt=navigator.platform.indexOf("Win")===0,Vt=q&&"transition"in dt,Rn="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!j,Hn="MozPerspective"in dt,_n=!window.L_DISABLE_3D&&(Vt||Rn||Hn)&&!at&&!Me,or=typeof orientation<"u"||ln("mobile"),fl=or&&Ee,Y=or&&Rn,ee=!window.PointerEvent&&window.MSPointerEvent,de=!!(window.PointerEvent||ee),Ce="ontouchstart"in window||!!window.TouchEvent,Be=!window.L_NO_TOUCH&&(Ce||de),Ae=or&&le,nt=or&&De,Tt=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,kn=function(){var r=!1;try{var a=Object.defineProperty({},"passive",{get:function(){r=!0}});window.addEventListener("testPassiveEventSupport",v,a),window.removeEventListener("testPassiveEventSupport",v,a)}catch{}return r}(),Ue=function(){return!!document.createElement("canvas").getContext}(),dl=!!(document.createElementNS&&ze("svg").createSVGRect),au=!!dl&&function(){var r=document.createElement("div");return r.innerHTML="<svg/>",(r.firstChild&&r.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),zv=!dl&&function(){try{var r=document.createElement("div");r.innerHTML='<v:shape adj="1"/>';var a=r.firstChild;return a.style.behavior="url(#default#VML)",a&&typeof a.adj=="object"}catch{return!1}}(),Va=navigator.platform.indexOf("Mac")===0,su=navigator.platform.indexOf("Linux")===0;function ln(r){return navigator.userAgent.toLowerCase().indexOf(r)>=0}var xe={ie:q,ielt9:me,edge:Pe,webkit:Ee,android:I,android23:j,androidStock:te,opera:le,chrome:ke,gecko:De,safari:He,phantom:Me,opera12:at,win:vt,ie3d:Vt,webkit3d:Rn,gecko3d:Hn,any3d:_n,mobile:or,mobileWebkit:fl,mobileWebkit3d:Y,msPointer:ee,pointer:de,touch:Be,touchNative:Ce,mobileOpera:Ae,mobileGecko:nt,retina:Tt,passiveEvents:kn,canvas:Ue,svg:dl,vml:zv,inlineSvg:au,mac:Va,linux:su},Qd=xe.msPointer?"MSPointerDown":"pointerdown",lu=xe.msPointer?"MSPointerMove":"pointermove",Fa=xe.msPointer?"MSPointerUp":"pointerup",Ya=xe.msPointer?"MSPointerCancel":"pointercancel",Mi={touchstart:Qd,touchmove:lu,touchend:Fa,touchcancel:Ya},eh={touchstart:Y2,touchmove:th,touchend:th,touchcancel:th},Jr={},hl=!1;function Xt(r,a,u){return a==="touchstart"&&F2(),eh[a]?(u=eh[a].bind(this,u),r.addEventListener(Mi[a],u,!1),u):(console.warn("wrong event specified:",a),v)}function Ai(r,a,u){if(!Mi[a]){console.warn("wrong event specified:",a);return}r.removeEventListener(Mi[a],u,!1)}function B2(r){Jr[r.pointerId]=r}function V2(r){Jr[r.pointerId]&&(Jr[r.pointerId]=r)}function WT(r){delete Jr[r.pointerId]}function F2(){hl||(document.addEventListener(Qd,B2,!0),document.addEventListener(lu,V2,!0),document.addEventListener(Fa,WT,!0),document.addEventListener(Ya,WT,!0),hl=!0)}function th(r,a){if(a.pointerType!==(a.MSPOINTER_TYPE_MOUSE||"mouse")){a.touches=[];for(var u in Jr)a.touches.push(Jr[u]);a.changedTouches=[a],r(a)}}function Y2(r,a){a.MSPOINTER_TYPE_TOUCH&&a.pointerType===a.MSPOINTER_TYPE_TOUCH&&cn(a),th(r,a)}function $2(r){var a={},u,h;for(h in r)u=r[h],a[h]=u&&u.bind?u.bind(r):u;return r=a,a.type="dblclick",a.detail=2,a.isTrusted=!1,a._simulated=!0,a}var U2=200;function z2(r,a){r.addEventListener("dblclick",a);var u=0,h;function m(S){if(S.detail!==1){h=S.detail;return}if(!(S.pointerType==="mouse"||S.sourceCapabilities&&!S.sourceCapabilities.firesTouchEvents)){var D=KT(S);if(!(D.some(function(Z){return Z instanceof HTMLLabelElement&&Z.attributes.for})&&!D.some(function(Z){return Z instanceof HTMLInputElement||Z instanceof HTMLSelectElement}))){var $=Date.now();$-u<=U2?(h++,h===2&&a($2(S))):h=1,u=$}}}return r.addEventListener("click",m),{dblclick:a,simDblclick:m}}function H2(r,a){r.removeEventListener("dblclick",a.dblclick),r.removeEventListener("click",a.simDblclick)}var Hv=ih(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),cu=ih(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ZT=cu==="webkitTransition"||cu==="OTransition"?cu+"End":"transitionend";function GT(r){return typeof r=="string"?document.getElementById(r):r}function uu(r,a){var u=r.style[a]||r.currentStyle&&r.currentStyle[a];if((!u||u==="auto")&&document.defaultView){var h=document.defaultView.getComputedStyle(r,null);u=h?h[a]:null}return u==="auto"?null:u}function ht(r,a,u){var h=document.createElement(r);return h.className=a||"",u&&u.appendChild(h),h}function Rt(r){var a=r.parentNode;a&&a.removeChild(r)}function nh(r){for(;r.firstChild;)r.removeChild(r.firstChild)}function pl(r){var a=r.parentNode;a&&a.lastChild!==r&&a.appendChild(r)}function _l(r){var a=r.parentNode;a&&a.firstChild!==r&&a.insertBefore(r,a.firstChild)}function Wv(r,a){if(r.classList!==void 0)return r.classList.contains(a);var u=rh(r);return u.length>0&&new RegExp("(^|\\s)"+a+"(\\s|$)").test(u)}function qe(r,a){if(r.classList!==void 0)for(var u=E(a),h=0,m=u.length;h<m;h++)r.classList.add(u[h]);else if(!Wv(r,a)){var S=rh(r);Zv(r,(S?S+" ":"")+a)}}function Ft(r,a){r.classList!==void 0?r.classList.remove(a):Zv(r,g((" "+rh(r)+" ").replace(" "+a+" "," ")))}function Zv(r,a){r.className.baseVal===void 0?r.className=a:r.className.baseVal=a}function rh(r){return r.correspondingElement&&(r=r.correspondingElement),r.className.baseVal===void 0?r.className:r.className.baseVal}function ar(r,a){"opacity"in r.style?r.style.opacity=a:"filter"in r.style&&W2(r,a)}function W2(r,a){var u=!1,h="DXImageTransform.Microsoft.Alpha";try{u=r.filters.item(h)}catch{if(a===1)return}a=Math.round(a*100),u?(u.Enabled=a!==100,u.Opacity=a):r.style.filter+=" progid:"+h+"(opacity="+a+")"}function ih(r){for(var a=document.documentElement.style,u=0;u<r.length;u++)if(r[u]in a)return r[u];return!1}function $a(r,a,u){var h=a||new x(0,0);r.style[Hv]=(xe.ie3d?"translate("+h.x+"px,"+h.y+"px)":"translate3d("+h.x+"px,"+h.y+"px,0)")+(u?" scale("+u+")":"")}function Zt(r,a){r._leaflet_pos=a,xe.any3d?$a(r,a):(r.style.left=a.x+"px",r.style.top=a.y+"px")}function Ua(r){return r._leaflet_pos||new x(0,0)}var fu,du,Gv;if("onselectstart"in document)fu=function(){We(window,"selectstart",cn)},du=function(){bt(window,"selectstart",cn)};else{var hu=ih(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);fu=function(){if(hu){var r=document.documentElement.style;Gv=r[hu],r[hu]="none"}},du=function(){hu&&(document.documentElement.style[hu]=Gv,Gv=void 0)}}function jv(){We(window,"dragstart",cn)}function qv(){bt(window,"dragstart",cn)}var oh,Kv;function Xv(r){for(;r.tabIndex===-1;)r=r.parentNode;r.style&&(ah(),oh=r,Kv=r.style.outlineStyle,r.style.outlineStyle="none",We(window,"keydown",ah))}function ah(){oh&&(oh.style.outlineStyle=Kv,oh=void 0,Kv=void 0,bt(window,"keydown",ah))}function jT(r){do r=r.parentNode;while((!r.offsetWidth||!r.offsetHeight)&&r!==document.body);return r}function Jv(r){var a=r.getBoundingClientRect();return{x:a.width/r.offsetWidth||1,y:a.height/r.offsetHeight||1,boundingClientRect:a}}var Z2={__proto__:null,TRANSFORM:Hv,TRANSITION:cu,TRANSITION_END:ZT,get:GT,getStyle:uu,create:ht,remove:Rt,empty:nh,toFront:pl,toBack:_l,hasClass:Wv,addClass:qe,removeClass:Ft,setClass:Zv,getClass:rh,setOpacity:ar,testProp:ih,setTransform:$a,setPosition:Zt,getPosition:Ua,get disableTextSelection(){return fu},get enableTextSelection(){return du},disableImageDrag:jv,enableImageDrag:qv,preventOutline:Xv,restoreOutline:ah,getSizedParentNode:jT,getScale:Jv};function We(r,a,u,h){if(a&&typeof a=="object")for(var m in a)eg(r,m,a[m],u);else{a=E(a);for(var S=0,D=a.length;S<D;S++)eg(r,a[S],u,h)}return this}var Qr="_leaflet_events";function bt(r,a,u,h){if(arguments.length===1)qT(r),delete r[Qr];else if(a&&typeof a=="object")for(var m in a)tg(r,m,a[m],u);else if(a=E(a),arguments.length===2)qT(r,function($){return z(a,$)!==-1});else for(var S=0,D=a.length;S<D;S++)tg(r,a[S],u,h);return this}function qT(r,a){for(var u in r[Qr]){var h=u.split(/\d/)[0];(!a||a(h))&&tg(r,h,null,null,u)}}var Qv={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function eg(r,a,u,h){var m=a+d(u)+(h?"_"+d(h):"");if(r[Qr]&&r[Qr][m])return this;var S=function($){return u.call(h||r,$||window.event)},D=S;!xe.touchNative&&xe.pointer&&a.indexOf("touch")===0?S=Xt(r,a,S):xe.touch&&a==="dblclick"?S=z2(r,S):"addEventListener"in r?a==="touchstart"||a==="touchmove"||a==="wheel"||a==="mousewheel"?r.addEventListener(Qv[a]||a,S,xe.passiveEvents?{passive:!1}:!1):a==="mouseenter"||a==="mouseleave"?(S=function($){$=$||window.event,rg(r,$)&&D($)},r.addEventListener(Qv[a],S,!1)):r.addEventListener(a,D,!1):r.attachEvent("on"+a,S),r[Qr]=r[Qr]||{},r[Qr][m]=S}function tg(r,a,u,h,m){m=m||a+d(u)+(h?"_"+d(h):"");var S=r[Qr]&&r[Qr][m];if(!S)return this;!xe.touchNative&&xe.pointer&&a.indexOf("touch")===0?Ai(r,a,S):xe.touch&&a==="dblclick"?H2(r,S):"removeEventListener"in r?r.removeEventListener(Qv[a]||a,S,!1):r.detachEvent("on"+a,S),r[Qr][m]=null}function za(r){return r.stopPropagation?r.stopPropagation():r.originalEvent?r.originalEvent._stopped=!0:r.cancelBubble=!0,this}function ng(r){return eg(r,"wheel",za),this}function pu(r){return We(r,"mousedown touchstart dblclick contextmenu",za),r._leaflet_disable_click=!0,this}function cn(r){return r.preventDefault?r.preventDefault():r.returnValue=!1,this}function Ha(r){return cn(r),za(r),this}function KT(r){if(r.composedPath)return r.composedPath();for(var a=[],u=r.target;u;)a.push(u),u=u.parentNode;return a}function XT(r,a){if(!a)return new x(r.clientX,r.clientY);var u=Jv(a),h=u.boundingClientRect;return new x((r.clientX-h.left)/u.x-a.clientLeft,(r.clientY-h.top)/u.y-a.clientTop)}var G2=xe.linux&&xe.chrome?window.devicePixelRatio:xe.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function JT(r){return xe.edge?r.wheelDeltaY/2:r.deltaY&&r.deltaMode===0?-r.deltaY/G2:r.deltaY&&r.deltaMode===1?-r.deltaY*20:r.deltaY&&r.deltaMode===2?-r.deltaY*60:r.deltaX||r.deltaZ?0:r.wheelDelta?(r.wheelDeltaY||r.wheelDelta)/2:r.detail&&Math.abs(r.detail)<32765?-r.detail*20:r.detail?r.detail/-32765*60:0}function rg(r,a){var u=a.relatedTarget;if(!u)return!0;try{for(;u&&u!==r;)u=u.parentNode}catch{return!1}return u!==r}var j2={__proto__:null,on:We,off:bt,stopPropagation:za,disableScrollPropagation:ng,disableClickPropagation:pu,preventDefault:cn,stop:Ha,getPropagationPath:KT,getMousePosition:XT,getWheelDelta:JT,isExternalTarget:rg,addListener:We,removeListener:bt},QT=W.extend({run:function(r,a,u,h){this.stop(),this._el=r,this._inProgress=!0,this._duration=u||.25,this._easeOutPower=1/Math.max(h||.5,.2),this._startPos=Ua(r),this._offset=a.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=B(this._animate,this),this._step()},_step:function(r){var a=+new Date-this._startTime,u=this._duration*1e3;a<u?this._runFrame(this._easeOut(a/u),r):(this._runFrame(1),this._complete())},_runFrame:function(r,a){var u=this._startPos.add(this._offset.multiplyBy(r));a&&u._round(),Zt(this._el,u),this.fire("step")},_complete:function(){ae(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(r){return 1-Math.pow(1-r,this._easeOutPower)}}),st=W.extend({options:{crs:we,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(r,a){a=w(this,a),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(r),this._initLayout(),this._onResize=c(this._onResize,this),this._initEvents(),a.maxBounds&&this.setMaxBounds(a.maxBounds),a.zoom!==void 0&&(this._zoom=this._limitZoom(a.zoom)),a.center&&a.zoom!==void 0&&this.setView(ie(a.center),a.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=cu&&xe.any3d&&!xe.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),We(this._proxy,ZT,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(r,a,u){if(a=a===void 0?this._zoom:this._limitZoom(a),r=this._limitCenter(ie(r),a,this.options.maxBounds),u=u||{},this._stop(),this._loaded&&!u.reset&&u!==!0){u.animate!==void 0&&(u.zoom=o({animate:u.animate},u.zoom),u.pan=o({animate:u.animate,duration:u.duration},u.pan));var h=this._zoom!==a?this._tryAnimatedZoom&&this._tryAnimatedZoom(r,a,u.zoom):this._tryAnimatedPan(r,u.pan);if(h)return clearTimeout(this._sizeTimer),this}return this._resetView(r,a,u.pan&&u.pan.noMoveStart),this},setZoom:function(r,a){return this._loaded?this.setView(this.getCenter(),r,{zoom:a}):(this._zoom=r,this)},zoomIn:function(r,a){return r=r||(xe.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+r,a)},zoomOut:function(r,a){return r=r||(xe.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-r,a)},setZoomAround:function(r,a,u){var h=this.getZoomScale(a),m=this.getSize().divideBy(2),S=r instanceof x?r:this.latLngToContainerPoint(r),D=S.subtract(m).multiplyBy(1-1/h),$=this.containerPointToLatLng(m.add(D));return this.setView($,a,{zoom:u})},_getBoundsCenterZoom:function(r,a){a=a||{},r=r.getBounds?r.getBounds():k(r);var u=re(a.paddingTopLeft||a.padding||[0,0]),h=re(a.paddingBottomRight||a.padding||[0,0]),m=this.getBoundsZoom(r,!1,u.add(h));if(m=typeof a.maxZoom=="number"?Math.min(a.maxZoom,m):m,m===1/0)return{center:r.getCenter(),zoom:m};var S=h.subtract(u).divideBy(2),D=this.project(r.getSouthWest(),m),$=this.project(r.getNorthEast(),m),Z=this.unproject(D.add($).divideBy(2).add(S),m);return{center:Z,zoom:m}},fitBounds:function(r,a){if(r=k(r),!r.isValid())throw new Error("Bounds are not valid.");var u=this._getBoundsCenterZoom(r,a);return this.setView(u.center,u.zoom,a)},fitWorld:function(r){return this.fitBounds([[-90,-180],[90,180]],r)},panTo:function(r,a){return this.setView(r,this._zoom,{pan:a})},panBy:function(r,a){if(r=re(r).round(),a=a||{},!r.x&&!r.y)return this.fire("moveend");if(a.animate!==!0&&!this.getSize().contains(r))return this._resetView(this.unproject(this.project(this.getCenter()).add(r)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new QT,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),a.noMoveStart||this.fire("movestart"),a.animate!==!1){qe(this._mapPane,"leaflet-pan-anim");var u=this._getMapPanePos().subtract(r).round();this._panAnim.run(this._mapPane,u,a.duration||.25,a.easeLinearity)}else this._rawPanBy(r),this.fire("move").fire("moveend");return this},flyTo:function(r,a,u){if(u=u||{},u.animate===!1||!xe.any3d)return this.setView(r,a,u);this._stop();var h=this.project(this.getCenter()),m=this.project(r),S=this.getSize(),D=this._zoom;r=ie(r),a=a===void 0?D:a;var $=Math.max(S.x,S.y),Z=$*this.getZoomScale(D,a),se=m.distanceTo(h)||1,ye=1.42,Fe=ye*ye;function Qe(Gt){var gh=Gt?-1:1,AY=Gt?Z:$,BY=Z*Z-$*$+gh*Fe*Fe*se*se,VY=2*AY*Fe*se,pg=BY/VY,Rb=Math.sqrt(pg*pg+1)-pg,FY=Rb<1e-9?-18:Math.log(Rb);return FY}function Cn(Gt){return(Math.exp(Gt)-Math.exp(-Gt))/2}function tn(Gt){return(Math.exp(Gt)+Math.exp(-Gt))/2}function lr(Gt){return Cn(Gt)/tn(Gt)}var Ln=Qe(0);function wl(Gt){return $*(tn(Ln)/tn(Ln+ye*Gt))}function IY(Gt){return $*(tn(Ln)*lr(Ln+ye*Gt)-Cn(Ln))/Fe}function RY(Gt){return 1-Math.pow(1-Gt,1.5)}var LY=Date.now(),Ob=(Qe(1)-Ln)/ye,MY=u.duration?1e3*u.duration:1e3*Ob*.8;function Ib(){var Gt=(Date.now()-LY)/MY,gh=RY(Gt)*Ob;Gt<=1?(this._flyToFrame=B(Ib,this),this._move(this.unproject(h.add(m.subtract(h).multiplyBy(IY(gh)/se)),D),this.getScaleZoom($/wl(gh),D),{flyTo:!0})):this._move(r,a)._moveEnd(!0)}return this._moveStart(!0,u.noMoveStart),Ib.call(this),this},flyToBounds:function(r,a){var u=this._getBoundsCenterZoom(r,a);return this.flyTo(u.center,u.zoom,a)},setMaxBounds:function(r){return r=k(r),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),r.isValid()?(this.options.maxBounds=r,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(r){var a=this.options.minZoom;return this.options.minZoom=r,this._loaded&&a!==r&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(r):this},setMaxZoom:function(r){var a=this.options.maxZoom;return this.options.maxZoom=r,this._loaded&&a!==r&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(r):this},panInsideBounds:function(r,a){this._enforcingBounds=!0;var u=this.getCenter(),h=this._limitCenter(u,this._zoom,k(r));return u.equals(h)||this.panTo(h,a),this._enforcingBounds=!1,this},panInside:function(r,a){a=a||{};var u=re(a.paddingTopLeft||a.padding||[0,0]),h=re(a.paddingBottomRight||a.padding||[0,0]),m=this.project(this.getCenter()),S=this.project(r),D=this.getPixelBounds(),$=N([D.min.add(u),D.max.subtract(h)]),Z=$.getSize();if(!$.contains(S)){this._enforcingBounds=!0;var se=S.subtract($.getCenter()),ye=$.extend(S).getSize().subtract(Z);m.x+=se.x<0?-ye.x:ye.x,m.y+=se.y<0?-ye.y:ye.y,this.panTo(this.unproject(m),a),this._enforcingBounds=!1}return this},invalidateSize:function(r){if(!this._loaded)return this;r=o({animate:!1,pan:!0},r===!0?{animate:!0}:r);var a=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var u=this.getSize(),h=a.divideBy(2).round(),m=u.divideBy(2).round(),S=h.subtract(m);return!S.x&&!S.y?this:(r.animate&&r.pan?this.panBy(S):(r.pan&&this._rawPanBy(S),this.fire("move"),r.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(c(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:a,newSize:u}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(r){if(r=this._locateOptions=o({timeout:1e4,watch:!1},r),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var a=c(this._handleGeolocationResponse,this),u=c(this._handleGeolocationError,this);return r.watch?this._locationWatchId=navigator.geolocation.watchPosition(a,u,r):navigator.geolocation.getCurrentPosition(a,u,r),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(r){if(this._container._leaflet_id){var a=r.code,u=r.message||(a===1?"permission denied":a===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:a,message:"Geolocation error: "+u+"."})}},_handleGeolocationResponse:function(r){if(this._container._leaflet_id){var a=r.coords.latitude,u=r.coords.longitude,h=new H(a,u),m=h.toBounds(r.coords.accuracy*2),S=this._locateOptions;if(S.setView){var D=this.getBoundsZoom(m);this.setView(h,S.maxZoom?Math.min(D,S.maxZoom):D)}var $={latlng:h,bounds:m,timestamp:r.timestamp};for(var Z in r.coords)typeof r.coords[Z]=="number"&&($[Z]=r.coords[Z]);this.fire("locationfound",$)}},addHandler:function(r,a){if(!a)return this;var u=this[r]=new a(this);return this._handlers.push(u),this.options[r]&&u.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Rt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(ae(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var r;for(r in this._layers)this._layers[r].remove();for(r in this._panes)Rt(this._panes[r]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(r,a){var u="leaflet-pane"+(r?" leaflet-"+r.replace("Pane","")+"-pane":""),h=ht("div",u,a||this._mapPane);return r&&(this._panes[r]=h),h},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var r=this.getPixelBounds(),a=this.unproject(r.getBottomLeft()),u=this.unproject(r.getTopRight());return new U(a,u)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(r,a,u){r=k(r),u=re(u||[0,0]);var h=this.getZoom()||0,m=this.getMinZoom(),S=this.getMaxZoom(),D=r.getNorthWest(),$=r.getSouthEast(),Z=this.getSize().subtract(u),se=N(this.project($,h),this.project(D,h)).getSize(),ye=xe.any3d?this.options.zoomSnap:1,Fe=Z.x/se.x,Qe=Z.y/se.y,Cn=a?Math.max(Fe,Qe):Math.min(Fe,Qe);return h=this.getScaleZoom(Cn,h),ye&&(h=Math.round(h/(ye/100))*(ye/100),h=a?Math.ceil(h/ye)*ye:Math.floor(h/ye)*ye),Math.max(m,Math.min(S,h))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new x(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(r,a){var u=this._getTopLeftPoint(r,a);return new _e(u,u.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(r){return this.options.crs.getProjectedBounds(r===void 0?this.getZoom():r)},getPane:function(r){return typeof r=="string"?this._panes[r]:r},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(r,a){var u=this.options.crs;return a=a===void 0?this._zoom:a,u.scale(r)/u.scale(a)},getScaleZoom:function(r,a){var u=this.options.crs;a=a===void 0?this._zoom:a;var h=u.zoom(r*u.scale(a));return isNaN(h)?1/0:h},project:function(r,a){return a=a===void 0?this._zoom:a,this.options.crs.latLngToPoint(ie(r),a)},unproject:function(r,a){return a=a===void 0?this._zoom:a,this.options.crs.pointToLatLng(re(r),a)},layerPointToLatLng:function(r){var a=re(r).add(this.getPixelOrigin());return this.unproject(a)},latLngToLayerPoint:function(r){var a=this.project(ie(r))._round();return a._subtract(this.getPixelOrigin())},wrapLatLng:function(r){return this.options.crs.wrapLatLng(ie(r))},wrapLatLngBounds:function(r){return this.options.crs.wrapLatLngBounds(k(r))},distance:function(r,a){return this.options.crs.distance(ie(r),ie(a))},containerPointToLayerPoint:function(r){return re(r).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(r){return re(r).add(this._getMapPanePos())},containerPointToLatLng:function(r){var a=this.containerPointToLayerPoint(re(r));return this.layerPointToLatLng(a)},latLngToContainerPoint:function(r){return this.layerPointToContainerPoint(this.latLngToLayerPoint(ie(r)))},mouseEventToContainerPoint:function(r){return XT(r,this._container)},mouseEventToLayerPoint:function(r){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(r))},mouseEventToLatLng:function(r){return this.layerPointToLatLng(this.mouseEventToLayerPoint(r))},_initContainer:function(r){var a=this._container=GT(r);if(a){if(a._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");We(a,"scroll",this._onScroll,this),this._containerId=d(a)},_initLayout:function(){var r=this._container;this._fadeAnimated=this.options.fadeAnimation&&xe.any3d,qe(r,"leaflet-container"+(xe.touch?" leaflet-touch":"")+(xe.retina?" leaflet-retina":"")+(xe.ielt9?" leaflet-oldie":"")+(xe.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var a=uu(r,"position");a!=="absolute"&&a!=="relative"&&a!=="fixed"&&a!=="sticky"&&(r.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var r=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Zt(this._mapPane,new x(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(qe(r.markerPane,"leaflet-zoom-hide"),qe(r.shadowPane,"leaflet-zoom-hide"))},_resetView:function(r,a,u){Zt(this._mapPane,new x(0,0));var h=!this._loaded;this._loaded=!0,a=this._limitZoom(a),this.fire("viewprereset");var m=this._zoom!==a;this._moveStart(m,u)._move(r,a)._moveEnd(m),this.fire("viewreset"),h&&this.fire("load")},_moveStart:function(r,a){return r&&this.fire("zoomstart"),a||this.fire("movestart"),this},_move:function(r,a,u,h){a===void 0&&(a=this._zoom);var m=this._zoom!==a;return this._zoom=a,this._lastCenter=r,this._pixelOrigin=this._getNewPixelOrigin(r),h?u&&u.pinch&&this.fire("zoom",u):((m||u&&u.pinch)&&this.fire("zoom",u),this.fire("move",u)),this},_moveEnd:function(r){return r&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return ae(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(r){Zt(this._mapPane,this._getMapPanePos().subtract(r))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(r){this._targets={},this._targets[d(this._container)]=this;var a=r?bt:We;a(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&a(window,"resize",this._onResize,this),xe.any3d&&this.options.transform3DLimit&&(r?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){ae(this._resizeRequest),this._resizeRequest=B(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var r=this._getMapPanePos();Math.max(Math.abs(r.x),Math.abs(r.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(r,a){for(var u=[],h,m=a==="mouseout"||a==="mouseover",S=r.target||r.srcElement,D=!1;S;){if(h=this._targets[d(S)],h&&(a==="click"||a==="preclick")&&this._draggableMoved(h)){D=!0;break}if(h&&h.listens(a,!0)&&(m&&!rg(S,r)||(u.push(h),m))||S===this._container)break;S=S.parentNode}return!u.length&&!D&&!m&&this.listens(a,!0)&&(u=[this]),u},_isClickDisabled:function(r){for(;r&&r!==this._container;){if(r._leaflet_disable_click)return!0;r=r.parentNode}},_handleDOMEvent:function(r){var a=r.target||r.srcElement;if(!(!this._loaded||a._leaflet_disable_events||r.type==="click"&&this._isClickDisabled(a))){var u=r.type;u==="mousedown"&&Xv(a),this._fireDOMEvent(r,u)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(r,a,u){if(r.type==="click"){var h=o({},r);h.type="preclick",this._fireDOMEvent(h,h.type,u)}var m=this._findEventTargets(r,a);if(u){for(var S=[],D=0;D<u.length;D++)u[D].listens(a,!0)&&S.push(u[D]);m=S.concat(m)}if(m.length){a==="contextmenu"&&cn(r);var $=m[0],Z={originalEvent:r};if(r.type!=="keypress"&&r.type!=="keydown"&&r.type!=="keyup"){var se=$.getLatLng&&(!$._radius||$._radius<=10);Z.containerPoint=se?this.latLngToContainerPoint($.getLatLng()):this.mouseEventToContainerPoint(r),Z.layerPoint=this.containerPointToLayerPoint(Z.containerPoint),Z.latlng=se?$.getLatLng():this.layerPointToLatLng(Z.layerPoint)}for(D=0;D<m.length;D++)if(m[D].fire(a,Z,!0),Z.originalEvent._stopped||m[D].options.bubblingMouseEvents===!1&&z(this._mouseEvents,a)!==-1)return}},_draggableMoved:function(r){return r=r.dragging&&r.dragging.enabled()?r:this,r.dragging&&r.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var r=0,a=this._handlers.length;r<a;r++)this._handlers[r].disable()},whenReady:function(r,a){return this._loaded?r.call(a||this,{target:this}):this.on("load",r,a),this},_getMapPanePos:function(){return Ua(this._mapPane)||new x(0,0)},_moved:function(){var r=this._getMapPanePos();return r&&!r.equals([0,0])},_getTopLeftPoint:function(r,a){var u=r&&a!==void 0?this._getNewPixelOrigin(r,a):this.getPixelOrigin();return u.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(r,a){var u=this.getSize()._divideBy(2);return this.project(r,a)._subtract(u)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(r,a,u){var h=this._getNewPixelOrigin(u,a);return this.project(r,a)._subtract(h)},_latLngBoundsToNewLayerBounds:function(r,a,u){var h=this._getNewPixelOrigin(u,a);return N([this.project(r.getSouthWest(),a)._subtract(h),this.project(r.getNorthWest(),a)._subtract(h),this.project(r.getSouthEast(),a)._subtract(h),this.project(r.getNorthEast(),a)._subtract(h)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(r){return this.latLngToLayerPoint(r).subtract(this._getCenterLayerPoint())},_limitCenter:function(r,a,u){if(!u)return r;var h=this.project(r,a),m=this.getSize().divideBy(2),S=new _e(h.subtract(m),h.add(m)),D=this._getBoundsOffset(S,u,a);return Math.abs(D.x)<=1&&Math.abs(D.y)<=1?r:this.unproject(h.add(D),a)},_limitOffset:function(r,a){if(!a)return r;var u=this.getPixelBounds(),h=new _e(u.min.add(r),u.max.add(r));return r.add(this._getBoundsOffset(h,a))},_getBoundsOffset:function(r,a,u){var h=N(this.project(a.getNorthEast(),u),this.project(a.getSouthWest(),u)),m=h.min.subtract(r.min),S=h.max.subtract(r.max),D=this._rebound(m.x,-S.x),$=this._rebound(m.y,-S.y);return new x(D,$)},_rebound:function(r,a){return r+a>0?Math.round(r-a)/2:Math.max(0,Math.ceil(r))-Math.max(0,Math.floor(a))},_limitZoom:function(r){var a=this.getMinZoom(),u=this.getMaxZoom(),h=xe.any3d?this.options.zoomSnap:1;return h&&(r=Math.round(r/h)*h),Math.max(a,Math.min(u,r))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Ft(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(r,a){var u=this._getCenterOffset(r)._trunc();return(a&&a.animate)!==!0&&!this.getSize().contains(u)?!1:(this.panBy(u,a),!0)},_createAnimProxy:function(){var r=this._proxy=ht("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(r),this.on("zoomanim",function(a){var u=Hv,h=this._proxy.style[u];$a(this._proxy,this.project(a.center,a.zoom),this.getZoomScale(a.zoom,1)),h===this._proxy.style[u]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Rt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var r=this.getCenter(),a=this.getZoom();$a(this._proxy,this.project(r,a),this.getZoomScale(a,1))},_catchTransitionEnd:function(r){this._animatingZoom&&r.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(r,a,u){if(this._animatingZoom)return!0;if(u=u||{},!this._zoomAnimated||u.animate===!1||this._nothingToAnimate()||Math.abs(a-this._zoom)>this.options.zoomAnimationThreshold)return!1;var h=this.getZoomScale(a),m=this._getCenterOffset(r)._divideBy(1-1/h);return u.animate!==!0&&!this.getSize().contains(m)?!1:(B(function(){this._moveStart(!0,u.noMoveStart||!1)._animateZoom(r,a,!0)},this),!0)},_animateZoom:function(r,a,u,h){this._mapPane&&(u&&(this._animatingZoom=!0,this._animateToCenter=r,this._animateToZoom=a,qe(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:r,zoom:a,noUpdate:h}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(c(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Ft(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function q2(r,a){return new st(r,a)}var Nr=P.extend({options:{position:"topright"},initialize:function(r){w(this,r)},getPosition:function(){return this.options.position},setPosition:function(r){var a=this._map;return a&&a.removeControl(this),this.options.position=r,a&&a.addControl(this),this},getContainer:function(){return this._container},addTo:function(r){this.remove(),this._map=r;var a=this._container=this.onAdd(r),u=this.getPosition(),h=r._controlCorners[u];return qe(a,"leaflet-control"),u.indexOf("bottom")!==-1?h.insertBefore(a,h.firstChild):h.appendChild(a),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Rt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(r){this._map&&r&&r.screenX>0&&r.screenY>0&&this._map.getContainer().focus()}}),_u=function(r){return new Nr(r)};st.include({addControl:function(r){return r.addTo(this),this},removeControl:function(r){return r.remove(),this},_initControlPos:function(){var r=this._controlCorners={},a="leaflet-",u=this._controlContainer=ht("div",a+"control-container",this._container);function h(m,S){var D=a+m+" "+a+S;r[m+S]=ht("div",D,u)}h("top","left"),h("top","right"),h("bottom","left"),h("bottom","right")},_clearControlPos:function(){for(var r in this._controlCorners)Rt(this._controlCorners[r]);Rt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var eb=Nr.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(r,a,u,h){return u<h?-1:h<u?1:0}},initialize:function(r,a,u){w(this,u),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var h in r)this._addLayer(r[h],h);for(h in a)this._addLayer(a[h],h,!0)},onAdd:function(r){this._initLayout(),this._update(),this._map=r,r.on("zoomend",this._checkDisabledLayers,this);for(var a=0;a<this._layers.length;a++)this._layers[a].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(r){return Nr.prototype.addTo.call(this,r),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var r=0;r<this._layers.length;r++)this._layers[r].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(r,a){return this._addLayer(r,a),this._map?this._update():this},addOverlay:function(r,a){return this._addLayer(r,a,!0),this._map?this._update():this},removeLayer:function(r){r.off("add remove",this._onLayerChange,this);var a=this._getLayer(d(r));return a&&this._layers.splice(this._layers.indexOf(a),1),this._map?this._update():this},expand:function(){qe(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var r=this._map.getSize().y-(this._container.offsetTop+50);return r<this._section.clientHeight?(qe(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=r+"px"):Ft(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Ft(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var r="leaflet-control-layers",a=this._container=ht("div",r),u=this.options.collapsed;a.setAttribute("aria-haspopup",!0),pu(a),ng(a);var h=this._section=ht("section",r+"-list");u&&(this._map.on("click",this.collapse,this),We(a,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var m=this._layersLink=ht("a",r+"-toggle",a);m.href="#",m.title="Layers",m.setAttribute("role","button"),We(m,{keydown:function(S){S.keyCode===13&&this._expandSafely()},click:function(S){cn(S),this._expandSafely()}},this),u||this.expand(),this._baseLayersList=ht("div",r+"-base",h),this._separator=ht("div",r+"-separator",h),this._overlaysList=ht("div",r+"-overlays",h),a.appendChild(h)},_getLayer:function(r){for(var a=0;a<this._layers.length;a++)if(this._layers[a]&&d(this._layers[a].layer)===r)return this._layers[a]},_addLayer:function(r,a,u){this._map&&r.on("add remove",this._onLayerChange,this),this._layers.push({layer:r,name:a,overlay:u}),this.options.sortLayers&&this._layers.sort(c(function(h,m){return this.options.sortFunction(h.layer,m.layer,h.name,m.name)},this)),this.options.autoZIndex&&r.setZIndex&&(this._lastZIndex++,r.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;nh(this._baseLayersList),nh(this._overlaysList),this._layerControlInputs=[];var r,a,u,h,m=0;for(u=0;u<this._layers.length;u++)h=this._layers[u],this._addItem(h),a=a||h.overlay,r=r||!h.overlay,m+=h.overlay?0:1;return this.options.hideSingleBase&&(r=r&&m>1,this._baseLayersList.style.display=r?"":"none"),this._separator.style.display=a&&r?"":"none",this},_onLayerChange:function(r){this._handlingClick||this._update();var a=this._getLayer(d(r.target)),u=a.overlay?r.type==="add"?"overlayadd":"overlayremove":r.type==="add"?"baselayerchange":null;u&&this._map.fire(u,a)},_createRadioElement:function(r,a){var u='<input type="radio" class="leaflet-control-layers-selector" name="'+r+'"'+(a?' checked="checked"':"")+"/>",h=document.createElement("div");return h.innerHTML=u,h.firstChild},_addItem:function(r){var a=document.createElement("label"),u=this._map.hasLayer(r.layer),h;r.overlay?(h=document.createElement("input"),h.type="checkbox",h.className="leaflet-control-layers-selector",h.defaultChecked=u):h=this._createRadioElement("leaflet-base-layers_"+d(this),u),this._layerControlInputs.push(h),h.layerId=d(r.layer),We(h,"click",this._onInputClick,this);var m=document.createElement("span");m.innerHTML=" "+r.name;var S=document.createElement("span");a.appendChild(S),S.appendChild(h),S.appendChild(m);var D=r.overlay?this._overlaysList:this._baseLayersList;return D.appendChild(a),this._checkDisabledLayers(),a},_onInputClick:function(){if(!this._preventClick){var r=this._layerControlInputs,a,u,h=[],m=[];this._handlingClick=!0;for(var S=r.length-1;S>=0;S--)a=r[S],u=this._getLayer(a.layerId).layer,a.checked?h.push(u):a.checked||m.push(u);for(S=0;S<m.length;S++)this._map.hasLayer(m[S])&&this._map.removeLayer(m[S]);for(S=0;S<h.length;S++)this._map.hasLayer(h[S])||this._map.addLayer(h[S]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var r=this._layerControlInputs,a,u,h=this._map.getZoom(),m=r.length-1;m>=0;m--)a=r[m],u=this._getLayer(a.layerId).layer,a.disabled=u.options.minZoom!==void 0&&h<u.options.minZoom||u.options.maxZoom!==void 0&&h>u.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var r=this._section;this._preventClick=!0,We(r,"click",cn),this.expand();var a=this;setTimeout(function(){bt(r,"click",cn),a._preventClick=!1})}}),K2=function(r,a,u){return new eb(r,a,u)},ig=Nr.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(r){var a="leaflet-control-zoom",u=ht("div",a+" leaflet-bar"),h=this.options;return this._zoomInButton=this._createButton(h.zoomInText,h.zoomInTitle,a+"-in",u,this._zoomIn),this._zoomOutButton=this._createButton(h.zoomOutText,h.zoomOutTitle,a+"-out",u,this._zoomOut),this._updateDisabled(),r.on("zoomend zoomlevelschange",this._updateDisabled,this),u},onRemove:function(r){r.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(r){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(r.shiftKey?3:1))},_zoomOut:function(r){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(r.shiftKey?3:1))},_createButton:function(r,a,u,h,m){var S=ht("a",u,h);return S.innerHTML=r,S.href="#",S.title=a,S.setAttribute("role","button"),S.setAttribute("aria-label",a),pu(S),We(S,"click",Ha),We(S,"click",m,this),We(S,"click",this._refocusOnMap,this),S},_updateDisabled:function(){var r=this._map,a="leaflet-disabled";Ft(this._zoomInButton,a),Ft(this._zoomOutButton,a),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||r._zoom===r.getMinZoom())&&(qe(this._zoomOutButton,a),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||r._zoom===r.getMaxZoom())&&(qe(this._zoomInButton,a),this._zoomInButton.setAttribute("aria-disabled","true"))}});st.mergeOptions({zoomControl:!0}),st.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new ig,this.addControl(this.zoomControl))});var X2=function(r){return new ig(r)},tb=Nr.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(r){var a="leaflet-control-scale",u=ht("div",a),h=this.options;return this._addScales(h,a+"-line",u),r.on(h.updateWhenIdle?"moveend":"move",this._update,this),r.whenReady(this._update,this),u},onRemove:function(r){r.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(r,a,u){r.metric&&(this._mScale=ht("div",a,u)),r.imperial&&(this._iScale=ht("div",a,u))},_update:function(){var r=this._map,a=r.getSize().y/2,u=r.distance(r.containerPointToLatLng([0,a]),r.containerPointToLatLng([this.options.maxWidth,a]));this._updateScales(u)},_updateScales:function(r){this.options.metric&&r&&this._updateMetric(r),this.options.imperial&&r&&this._updateImperial(r)},_updateMetric:function(r){var a=this._getRoundNum(r),u=a<1e3?a+" m":a/1e3+" km";this._updateScale(this._mScale,u,a/r)},_updateImperial:function(r){var a=r*3.2808399,u,h,m;a>5280?(u=a/5280,h=this._getRoundNum(u),this._updateScale(this._iScale,h+" mi",h/u)):(m=this._getRoundNum(a),this._updateScale(this._iScale,m+" ft",m/a))},_updateScale:function(r,a,u){r.style.width=Math.round(this.options.maxWidth*u)+"px",r.innerHTML=a},_getRoundNum:function(r){var a=Math.pow(10,(Math.floor(r)+"").length-1),u=r/a;return u=u>=10?10:u>=5?5:u>=3?3:u>=2?2:1,a*u}}),J2=function(r){return new tb(r)},Q2='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',og=Nr.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(xe.inlineSvg?Q2+" ":"")+"Leaflet</a>"},initialize:function(r){w(this,r),this._attributions={}},onAdd:function(r){r.attributionControl=this,this._container=ht("div","leaflet-control-attribution"),pu(this._container);for(var a in r._layers)r._layers[a].getAttribution&&this.addAttribution(r._layers[a].getAttribution());return this._update(),r.on("layeradd",this._addAttribution,this),this._container},onRemove:function(r){r.off("layeradd",this._addAttribution,this)},_addAttribution:function(r){r.layer.getAttribution&&(this.addAttribution(r.layer.getAttribution()),r.layer.once("remove",function(){this.removeAttribution(r.layer.getAttribution())},this))},setPrefix:function(r){return this.options.prefix=r,this._update(),this},addAttribution:function(r){return r?(this._attributions[r]||(this._attributions[r]=0),this._attributions[r]++,this._update(),this):this},removeAttribution:function(r){return r?(this._attributions[r]&&(this._attributions[r]--,this._update()),this):this},_update:function(){if(this._map){var r=[];for(var a in this._attributions)this._attributions[a]&&r.push(a);var u=[];this.options.prefix&&u.push(this.options.prefix),r.length&&u.push(r.join(", ")),this._container.innerHTML=u.join(' <span aria-hidden="true">|</span> ')}}});st.mergeOptions({attributionControl:!0}),st.addInitHook(function(){this.options.attributionControl&&new og().addTo(this)});var eY=function(r){return new og(r)};Nr.Layers=eb,Nr.Zoom=ig,Nr.Scale=tb,Nr.Attribution=og,_u.layers=K2,_u.zoom=X2,_u.scale=J2,_u.attribution=eY;var ei=P.extend({initialize:function(r){this._map=r},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});ei.addTo=function(r,a){return r.addHandler(a,this),this};var tY={Events:K},nb=xe.touch?"touchstart mousedown":"mousedown",Oo=W.extend({options:{clickTolerance:3},initialize:function(r,a,u,h){w(this,h),this._element=r,this._dragStartTarget=a||r,this._preventOutline=u},enable:function(){this._enabled||(We(this._dragStartTarget,nb,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Oo._dragging===this&&this.finishDrag(!0),bt(this._dragStartTarget,nb,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(r){if(this._enabled&&(this._moved=!1,!Wv(this._element,"leaflet-zoom-anim"))){if(r.touches&&r.touches.length!==1){Oo._dragging===this&&this.finishDrag();return}if(!(Oo._dragging||r.shiftKey||r.which!==1&&r.button!==1&&!r.touches)&&(Oo._dragging=this,this._preventOutline&&Xv(this._element),jv(),fu(),!this._moving)){this.fire("down");var a=r.touches?r.touches[0]:r,u=jT(this._element);this._startPoint=new x(a.clientX,a.clientY),this._startPos=Ua(this._element),this._parentScale=Jv(u);var h=r.type==="mousedown";We(document,h?"mousemove":"touchmove",this._onMove,this),We(document,h?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(r){if(this._enabled){if(r.touches&&r.touches.length>1){this._moved=!0;return}var a=r.touches&&r.touches.length===1?r.touches[0]:r,u=new x(a.clientX,a.clientY)._subtract(this._startPoint);!u.x&&!u.y||Math.abs(u.x)+Math.abs(u.y)<this.options.clickTolerance||(u.x/=this._parentScale.x,u.y/=this._parentScale.y,cn(r),this._moved||(this.fire("dragstart"),this._moved=!0,qe(document.body,"leaflet-dragging"),this._lastTarget=r.target||r.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),qe(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(u),this._moving=!0,this._lastEvent=r,this._updatePosition())}},_updatePosition:function(){var r={originalEvent:this._lastEvent};this.fire("predrag",r),Zt(this._element,this._newPos),this.fire("drag",r)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(r){Ft(document.body,"leaflet-dragging"),this._lastTarget&&(Ft(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),bt(document,"mousemove touchmove",this._onMove,this),bt(document,"mouseup touchend touchcancel",this._onUp,this),qv(),du();var a=this._moved&&this._moving;this._moving=!1,Oo._dragging=!1,a&&this.fire("dragend",{noInertia:r,distance:this._newPos.distanceTo(this._startPos)})}});function rb(r,a,u){var h,m=[1,4,2,8],S,D,$,Z,se,ye,Fe,Qe;for(S=0,ye=r.length;S<ye;S++)r[S]._code=Wa(r[S],a);for($=0;$<4;$++){for(Fe=m[$],h=[],S=0,ye=r.length,D=ye-1;S<ye;D=S++)Z=r[S],se=r[D],Z._code&Fe?se._code&Fe||(Qe=sh(se,Z,Fe,a,u),Qe._code=Wa(Qe,a),h.push(Qe)):(se._code&Fe&&(Qe=sh(se,Z,Fe,a,u),Qe._code=Wa(Qe,a),h.push(Qe)),h.push(Z));r=h}return r}function ib(r,a){var u,h,m,S,D,$,Z,se,ye;if(!r||r.length===0)throw new Error("latlngs not passed");sr(r)||(console.warn("latlngs are not flat! Only the first ring will be used"),r=r[0]);var Fe=ie([0,0]),Qe=k(r),Cn=Qe.getNorthWest().distanceTo(Qe.getSouthWest())*Qe.getNorthEast().distanceTo(Qe.getNorthWest());Cn<1700&&(Fe=ag(r));var tn=r.length,lr=[];for(u=0;u<tn;u++){var Ln=ie(r[u]);lr.push(a.project(ie([Ln.lat-Fe.lat,Ln.lng-Fe.lng])))}for($=Z=se=0,u=0,h=tn-1;u<tn;h=u++)m=lr[u],S=lr[h],D=m.y*S.x-S.y*m.x,Z+=(m.x+S.x)*D,se+=(m.y+S.y)*D,$+=D*3;$===0?ye=lr[0]:ye=[Z/$,se/$];var wl=a.unproject(re(ye));return ie([wl.lat+Fe.lat,wl.lng+Fe.lng])}function ag(r){for(var a=0,u=0,h=0,m=0;m<r.length;m++){var S=ie(r[m]);a+=S.lat,u+=S.lng,h++}return ie([a/h,u/h])}var nY={__proto__:null,clipPolygon:rb,polygonCenter:ib,centroid:ag};function ob(r,a){if(!a||!r.length)return r.slice();var u=a*a;return r=oY(r,u),r=iY(r,u),r}function ab(r,a,u){return Math.sqrt(mu(r,a,u,!0))}function rY(r,a,u){return mu(r,a,u)}function iY(r,a){var u=r.length,h=typeof Uint8Array<"u"?Uint8Array:Array,m=new h(u);m[0]=m[u-1]=1,sg(r,m,a,0,u-1);var S,D=[];for(S=0;S<u;S++)m[S]&&D.push(r[S]);return D}function sg(r,a,u,h,m){var S=0,D,$,Z;for($=h+1;$<=m-1;$++)Z=mu(r[$],r[h],r[m],!0),Z>S&&(D=$,S=Z);S>u&&(a[D]=1,sg(r,a,u,h,D),sg(r,a,u,D,m))}function oY(r,a){for(var u=[r[0]],h=1,m=0,S=r.length;h<S;h++)aY(r[h],r[m])>a&&(u.push(r[h]),m=h);return m<S-1&&u.push(r[S-1]),u}var sb;function lb(r,a,u,h,m){var S=h?sb:Wa(r,u),D=Wa(a,u),$,Z,se;for(sb=D;;){if(!(S|D))return[r,a];if(S&D)return!1;$=S||D,Z=sh(r,a,$,u,m),se=Wa(Z,u),$===S?(r=Z,S=se):(a=Z,D=se)}}function sh(r,a,u,h,m){var S=a.x-r.x,D=a.y-r.y,$=h.min,Z=h.max,se,ye;return u&8?(se=r.x+S*(Z.y-r.y)/D,ye=Z.y):u&4?(se=r.x+S*($.y-r.y)/D,ye=$.y):u&2?(se=Z.x,ye=r.y+D*(Z.x-r.x)/S):u&1&&(se=$.x,ye=r.y+D*($.x-r.x)/S),new x(se,ye,m)}function Wa(r,a){var u=0;return r.x<a.min.x?u|=1:r.x>a.max.x&&(u|=2),r.y<a.min.y?u|=4:r.y>a.max.y&&(u|=8),u}function aY(r,a){var u=a.x-r.x,h=a.y-r.y;return u*u+h*h}function mu(r,a,u,h){var m=a.x,S=a.y,D=u.x-m,$=u.y-S,Z=D*D+$*$,se;return Z>0&&(se=((r.x-m)*D+(r.y-S)*$)/Z,se>1?(m=u.x,S=u.y):se>0&&(m+=D*se,S+=$*se)),D=r.x-m,$=r.y-S,h?D*D+$*$:new x(m,S)}function sr(r){return!M(r[0])||typeof r[0][0]!="object"&&typeof r[0][0]<"u"}function cb(r){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),sr(r)}function ub(r,a){var u,h,m,S,D,$,Z,se;if(!r||r.length===0)throw new Error("latlngs not passed");sr(r)||(console.warn("latlngs are not flat! Only the first ring will be used"),r=r[0]);var ye=ie([0,0]),Fe=k(r),Qe=Fe.getNorthWest().distanceTo(Fe.getSouthWest())*Fe.getNorthEast().distanceTo(Fe.getNorthWest());Qe<1700&&(ye=ag(r));var Cn=r.length,tn=[];for(u=0;u<Cn;u++){var lr=ie(r[u]);tn.push(a.project(ie([lr.lat-ye.lat,lr.lng-ye.lng])))}for(u=0,h=0;u<Cn-1;u++)h+=tn[u].distanceTo(tn[u+1])/2;if(h===0)se=tn[0];else for(u=0,S=0;u<Cn-1;u++)if(D=tn[u],$=tn[u+1],m=D.distanceTo($),S+=m,S>h){Z=(S-h)/m,se=[$.x-Z*($.x-D.x),$.y-Z*($.y-D.y)];break}var Ln=a.unproject(re(se));return ie([Ln.lat+ye.lat,Ln.lng+ye.lng])}var sY={__proto__:null,simplify:ob,pointToSegmentDistance:ab,closestPointOnSegment:rY,clipSegment:lb,_getEdgeIntersection:sh,_getBitCode:Wa,_sqClosestPointOnSegment:mu,isFlat:sr,_flat:cb,polylineCenter:ub},lg={project:function(r){return new x(r.lng,r.lat)},unproject:function(r){return new H(r.y,r.x)},bounds:new _e([-180,-90],[180,90])},cg={R:6378137,R_MINOR:6356752314245179e-9,bounds:new _e([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(r){var a=Math.PI/180,u=this.R,h=r.lat*a,m=this.R_MINOR/u,S=Math.sqrt(1-m*m),D=S*Math.sin(h),$=Math.tan(Math.PI/4-h/2)/Math.pow((1-D)/(1+D),S/2);return h=-u*Math.log(Math.max($,1e-10)),new x(r.lng*a*u,h)},unproject:function(r){for(var a=180/Math.PI,u=this.R,h=this.R_MINOR/u,m=Math.sqrt(1-h*h),S=Math.exp(-r.y/u),D=Math.PI/2-2*Math.atan(S),$=0,Z=.1,se;$<15&&Math.abs(Z)>1e-7;$++)se=m*Math.sin(D),se=Math.pow((1-se)/(1+se),m/2),Z=Math.PI/2-2*Math.atan(S*se)-D,D+=Z;return new H(D*a,r.x*a/u)}},lY={__proto__:null,LonLat:lg,Mercator:cg,SphericalMercator:fe},cY=o({},X,{code:"EPSG:3395",projection:cg,transformation:function(){var r=.5/(Math.PI*cg.R);return Ge(r,.5,-r,.5)}()}),fb=o({},X,{code:"EPSG:4326",projection:lg,transformation:Ge(1/180,1,-1/180,.5)}),uY=o({},O,{projection:lg,transformation:Ge(1,0,-1,0),scale:function(r){return Math.pow(2,r)},zoom:function(r){return Math.log(r)/Math.LN2},distance:function(r,a){var u=a.lng-r.lng,h=a.lat-r.lat;return Math.sqrt(u*u+h*h)},infinite:!0});O.Earth=X,O.EPSG3395=cY,O.EPSG3857=we,O.EPSG900913=be,O.EPSG4326=fb,O.Simple=uY;var kr=W.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(r){return r.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(r){return r&&r.removeLayer(this),this},getPane:function(r){return this._map.getPane(r?this.options[r]||r:this.options.pane)},addInteractiveTarget:function(r){return this._map._targets[d(r)]=this,this},removeInteractiveTarget:function(r){return delete this._map._targets[d(r)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(r){var a=r.target;if(a.hasLayer(this)){if(this._map=a,this._zoomAnimated=a._zoomAnimated,this.getEvents){var u=this.getEvents();a.on(u,this),this.once("remove",function(){a.off(u,this)},this)}this.onAdd(a),this.fire("add"),a.fire("layeradd",{layer:this})}}});st.include({addLayer:function(r){if(!r._layerAdd)throw new Error("The provided object is not a Layer.");var a=d(r);return this._layers[a]?this:(this._layers[a]=r,r._mapToAdd=this,r.beforeAdd&&r.beforeAdd(this),this.whenReady(r._layerAdd,r),this)},removeLayer:function(r){var a=d(r);return this._layers[a]?(this._loaded&&r.onRemove(this),delete this._layers[a],this._loaded&&(this.fire("layerremove",{layer:r}),r.fire("remove")),r._map=r._mapToAdd=null,this):this},hasLayer:function(r){return d(r)in this._layers},eachLayer:function(r,a){for(var u in this._layers)r.call(a,this._layers[u]);return this},_addLayers:function(r){r=r?M(r)?r:[r]:[];for(var a=0,u=r.length;a<u;a++)this.addLayer(r[a])},_addZoomLimit:function(r){(!isNaN(r.options.maxZoom)||!isNaN(r.options.minZoom))&&(this._zoomBoundLayers[d(r)]=r,this._updateZoomLevels())},_removeZoomLimit:function(r){var a=d(r);this._zoomBoundLayers[a]&&(delete this._zoomBoundLayers[a],this._updateZoomLevels())},_updateZoomLevels:function(){var r=1/0,a=-1/0,u=this._getZoomSpan();for(var h in this._zoomBoundLayers){var m=this._zoomBoundLayers[h].options;r=m.minZoom===void 0?r:Math.min(r,m.minZoom),a=m.maxZoom===void 0?a:Math.max(a,m.maxZoom)}this._layersMaxZoom=a===-1/0?void 0:a,this._layersMinZoom=r===1/0?void 0:r,u!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var ml=kr.extend({initialize:function(r,a){w(this,a),this._layers={};var u,h;if(r)for(u=0,h=r.length;u<h;u++)this.addLayer(r[u])},addLayer:function(r){var a=this.getLayerId(r);return this._layers[a]=r,this._map&&this._map.addLayer(r),this},removeLayer:function(r){var a=r in this._layers?r:this.getLayerId(r);return this._map&&this._layers[a]&&this._map.removeLayer(this._layers[a]),delete this._layers[a],this},hasLayer:function(r){var a=typeof r=="number"?r:this.getLayerId(r);return a in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(r){var a=Array.prototype.slice.call(arguments,1),u,h;for(u in this._layers)h=this._layers[u],h[r]&&h[r].apply(h,a);return this},onAdd:function(r){this.eachLayer(r.addLayer,r)},onRemove:function(r){this.eachLayer(r.removeLayer,r)},eachLayer:function(r,a){for(var u in this._layers)r.call(a,this._layers[u]);return this},getLayer:function(r){return this._layers[r]},getLayers:function(){var r=[];return this.eachLayer(r.push,r),r},setZIndex:function(r){return this.invoke("setZIndex",r)},getLayerId:function(r){return d(r)}}),fY=function(r,a){return new ml(r,a)},Bi=ml.extend({addLayer:function(r){return this.hasLayer(r)?this:(r.addEventParent(this),ml.prototype.addLayer.call(this,r),this.fire("layeradd",{layer:r}))},removeLayer:function(r){return this.hasLayer(r)?(r in this._layers&&(r=this._layers[r]),r.removeEventParent(this),ml.prototype.removeLayer.call(this,r),this.fire("layerremove",{layer:r})):this},setStyle:function(r){return this.invoke("setStyle",r)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var r=new U;for(var a in this._layers){var u=this._layers[a];r.extend(u.getBounds?u.getBounds():u.getLatLng())}return r}}),dY=function(r,a){return new Bi(r,a)},vl=P.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(r){w(this,r)},createIcon:function(r){return this._createIcon("icon",r)},createShadow:function(r){return this._createIcon("shadow",r)},_createIcon:function(r,a){var u=this._getIconUrl(r);if(!u){if(r==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var h=this._createImg(u,a&&a.tagName==="IMG"?a:null);return this._setIconStyles(h,r),(this.options.crossOrigin||this.options.crossOrigin==="")&&(h.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),h},_setIconStyles:function(r,a){var u=this.options,h=u[a+"Size"];typeof h=="number"&&(h=[h,h]);var m=re(h),S=re(a==="shadow"&&u.shadowAnchor||u.iconAnchor||m&&m.divideBy(2,!0));r.className="leaflet-marker-"+a+" "+(u.className||""),S&&(r.style.marginLeft=-S.x+"px",r.style.marginTop=-S.y+"px"),m&&(r.style.width=m.x+"px",r.style.height=m.y+"px")},_createImg:function(r,a){return a=a||document.createElement("img"),a.src=r,a},_getIconUrl:function(r){return xe.retina&&this.options[r+"RetinaUrl"]||this.options[r+"Url"]}});function hY(r){return new vl(r)}var vu=vl.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(r){return typeof vu.imagePath!="string"&&(vu.imagePath=this._detectIconPath()),(this.options.imagePath||vu.imagePath)+vl.prototype._getIconUrl.call(this,r)},_stripUrl:function(r){var a=function(u,h,m){var S=h.exec(u);return S&&S[m]};return r=a(r,/^url\((['"])?(.+)\1\)$/,2),r&&a(r,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var r=ht("div","leaflet-default-icon-path",document.body),a=uu(r,"background-image")||uu(r,"backgroundImage");if(document.body.removeChild(r),a=this._stripUrl(a),a)return a;var u=document.querySelector('link[href$="leaflet.css"]');return u?u.href.substring(0,u.href.length-11-1):""}}),db=ei.extend({initialize:function(r){this._marker=r},addHooks:function(){var r=this._marker._icon;this._draggable||(this._draggable=new Oo(r,r,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),qe(r,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&Ft(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(r){var a=this._marker,u=a._map,h=this._marker.options.autoPanSpeed,m=this._marker.options.autoPanPadding,S=Ua(a._icon),D=u.getPixelBounds(),$=u.getPixelOrigin(),Z=N(D.min._subtract($).add(m),D.max._subtract($).subtract(m));if(!Z.contains(S)){var se=re((Math.max(Z.max.x,S.x)-Z.max.x)/(D.max.x-Z.max.x)-(Math.min(Z.min.x,S.x)-Z.min.x)/(D.min.x-Z.min.x),(Math.max(Z.max.y,S.y)-Z.max.y)/(D.max.y-Z.max.y)-(Math.min(Z.min.y,S.y)-Z.min.y)/(D.min.y-Z.min.y)).multiplyBy(h);u.panBy(se,{animate:!1}),this._draggable._newPos._add(se),this._draggable._startPos._add(se),Zt(a._icon,this._draggable._newPos),this._onDrag(r),this._panRequest=B(this._adjustPan.bind(this,r))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(r){this._marker.options.autoPan&&(ae(this._panRequest),this._panRequest=B(this._adjustPan.bind(this,r)))},_onDrag:function(r){var a=this._marker,u=a._shadow,h=Ua(a._icon),m=a._map.layerPointToLatLng(h);u&&Zt(u,h),a._latlng=m,r.latlng=m,r.oldLatLng=this._oldLatLng,a.fire("move",r).fire("drag",r)},_onDragEnd:function(r){ae(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",r)}}),lh=kr.extend({options:{icon:new vu,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(r,a){w(this,a),this._latlng=ie(r)},onAdd:function(r){this._zoomAnimated=this._zoomAnimated&&r.options.markerZoomAnimation,this._zoomAnimated&&r.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(r){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&r.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(r){var a=this._latlng;return this._latlng=ie(r),this.update(),this.fire("move",{oldLatLng:a,latlng:this._latlng})},setZIndexOffset:function(r){return this.options.zIndexOffset=r,this.update()},getIcon:function(){return this.options.icon},setIcon:function(r){return this.options.icon=r,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var r=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(r)}return this},_initIcon:function(){var r=this.options,a="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),u=r.icon.createIcon(this._icon),h=!1;u!==this._icon&&(this._icon&&this._removeIcon(),h=!0,r.title&&(u.title=r.title),u.tagName==="IMG"&&(u.alt=r.alt||"")),qe(u,a),r.keyboard&&(u.tabIndex="0",u.setAttribute("role","button")),this._icon=u,r.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&We(u,"focus",this._panOnFocus,this);var m=r.icon.createShadow(this._shadow),S=!1;m!==this._shadow&&(this._removeShadow(),S=!0),m&&(qe(m,a),m.alt=""),this._shadow=m,r.opacity<1&&this._updateOpacity(),h&&this.getPane().appendChild(this._icon),this._initInteraction(),m&&S&&this.getPane(r.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&bt(this._icon,"focus",this._panOnFocus,this),Rt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Rt(this._shadow),this._shadow=null},_setPos:function(r){this._icon&&Zt(this._icon,r),this._shadow&&Zt(this._shadow,r),this._zIndex=r.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(r){this._icon&&(this._icon.style.zIndex=this._zIndex+r)},_animateZoom:function(r){var a=this._map._latLngToNewLayerPoint(this._latlng,r.zoom,r.center).round();this._setPos(a)},_initInteraction:function(){if(this.options.interactive&&(qe(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),db)){var r=this.options.draggable;this.dragging&&(r=this.dragging.enabled(),this.dragging.disable()),this.dragging=new db(this),r&&this.dragging.enable()}},setOpacity:function(r){return this.options.opacity=r,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var r=this.options.opacity;this._icon&&ar(this._icon,r),this._shadow&&ar(this._shadow,r)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var r=this._map;if(r){var a=this.options.icon.options,u=a.iconSize?re(a.iconSize):re(0,0),h=a.iconAnchor?re(a.iconAnchor):re(0,0);r.panInside(this._latlng,{paddingTopLeft:h,paddingBottomRight:u.subtract(h)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function pY(r,a){return new lh(r,a)}var Io=kr.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(r){this._renderer=r.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(r){return w(this,r),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&r&&Object.prototype.hasOwnProperty.call(r,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),ch=Io.extend({options:{fill:!0,radius:10},initialize:function(r,a){w(this,a),this._latlng=ie(r),this._radius=this.options.radius},setLatLng:function(r){var a=this._latlng;return this._latlng=ie(r),this.redraw(),this.fire("move",{oldLatLng:a,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(r){return this.options.radius=this._radius=r,this.redraw()},getRadius:function(){return this._radius},setStyle:function(r){var a=r&&r.radius||this._radius;return Io.prototype.setStyle.call(this,r),this.setRadius(a),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var r=this._radius,a=this._radiusY||r,u=this._clickTolerance(),h=[r+u,a+u];this._pxBounds=new _e(this._point.subtract(h),this._point.add(h))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(r){return r.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function _Y(r,a){return new ch(r,a)}var ug=ch.extend({initialize:function(r,a,u){if(typeof a=="number"&&(a=o({},u,{radius:a})),w(this,a),this._latlng=ie(r),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(r){return this._mRadius=r,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var r=[this._radius,this._radiusY||this._radius];return new U(this._map.layerPointToLatLng(this._point.subtract(r)),this._map.layerPointToLatLng(this._point.add(r)))},setStyle:Io.prototype.setStyle,_project:function(){var r=this._latlng.lng,a=this._latlng.lat,u=this._map,h=u.options.crs;if(h.distance===X.distance){var m=Math.PI/180,S=this._mRadius/X.R/m,D=u.project([a+S,r]),$=u.project([a-S,r]),Z=D.add($).divideBy(2),se=u.unproject(Z).lat,ye=Math.acos((Math.cos(S*m)-Math.sin(a*m)*Math.sin(se*m))/(Math.cos(a*m)*Math.cos(se*m)))/m;(isNaN(ye)||ye===0)&&(ye=S/Math.cos(Math.PI/180*a)),this._point=Z.subtract(u.getPixelOrigin()),this._radius=isNaN(ye)?0:Z.x-u.project([se,r-ye]).x,this._radiusY=Z.y-D.y}else{var Fe=h.unproject(h.project(this._latlng).subtract([this._mRadius,0]));this._point=u.latLngToLayerPoint(this._latlng),this._radius=this._point.x-u.latLngToLayerPoint(Fe).x}this._updateBounds()}});function mY(r,a,u){return new ug(r,a,u)}var Vi=Io.extend({options:{smoothFactor:1,noClip:!1},initialize:function(r,a){w(this,a),this._setLatLngs(r)},getLatLngs:function(){return this._latlngs},setLatLngs:function(r){return this._setLatLngs(r),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(r){for(var a=1/0,u=null,h=mu,m,S,D=0,$=this._parts.length;D<$;D++)for(var Z=this._parts[D],se=1,ye=Z.length;se<ye;se++){m=Z[se-1],S=Z[se];var Fe=h(r,m,S,!0);Fe<a&&(a=Fe,u=h(r,m,S))}return u&&(u.distance=Math.sqrt(a)),u},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return ub(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(r,a){return a=a||this._defaultShape(),r=ie(r),a.push(r),this._bounds.extend(r),this.redraw()},_setLatLngs:function(r){this._bounds=new U,this._latlngs=this._convertLatLngs(r)},_defaultShape:function(){return sr(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(r){for(var a=[],u=sr(r),h=0,m=r.length;h<m;h++)u?(a[h]=ie(r[h]),this._bounds.extend(a[h])):a[h]=this._convertLatLngs(r[h]);return a},_project:function(){var r=new _e;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,r),this._bounds.isValid()&&r.isValid()&&(this._rawPxBounds=r,this._updateBounds())},_updateBounds:function(){var r=this._clickTolerance(),a=new x(r,r);this._rawPxBounds&&(this._pxBounds=new _e([this._rawPxBounds.min.subtract(a),this._rawPxBounds.max.add(a)]))},_projectLatlngs:function(r,a,u){var h=r[0]instanceof H,m=r.length,S,D;if(h){for(D=[],S=0;S<m;S++)D[S]=this._map.latLngToLayerPoint(r[S]),u.extend(D[S]);a.push(D)}else for(S=0;S<m;S++)this._projectLatlngs(r[S],a,u)},_clipPoints:function(){var r=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(r))){if(this.options.noClip){this._parts=this._rings;return}var a=this._parts,u,h,m,S,D,$,Z;for(u=0,m=0,S=this._rings.length;u<S;u++)for(Z=this._rings[u],h=0,D=Z.length;h<D-1;h++)$=lb(Z[h],Z[h+1],r,h,!0),$&&(a[m]=a[m]||[],a[m].push($[0]),($[1]!==Z[h+1]||h===D-2)&&(a[m].push($[1]),m++))}},_simplifyPoints:function(){for(var r=this._parts,a=this.options.smoothFactor,u=0,h=r.length;u<h;u++)r[u]=ob(r[u],a)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(r,a){var u,h,m,S,D,$,Z=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(r))return!1;for(u=0,S=this._parts.length;u<S;u++)for($=this._parts[u],h=0,D=$.length,m=D-1;h<D;m=h++)if(!(!a&&h===0)&&ab(r,$[m],$[h])<=Z)return!0;return!1}});function vY(r,a){return new Vi(r,a)}Vi._flat=cb;var gl=Vi.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return ib(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(r){var a=Vi.prototype._convertLatLngs.call(this,r),u=a.length;return u>=2&&a[0]instanceof H&&a[0].equals(a[u-1])&&a.pop(),a},_setLatLngs:function(r){Vi.prototype._setLatLngs.call(this,r),sr(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return sr(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var r=this._renderer._bounds,a=this.options.weight,u=new x(a,a);if(r=new _e(r.min.subtract(u),r.max.add(u)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(r))){if(this.options.noClip){this._parts=this._rings;return}for(var h=0,m=this._rings.length,S;h<m;h++)S=rb(this._rings[h],r,!0),S.length&&this._parts.push(S)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(r){var a=!1,u,h,m,S,D,$,Z,se;if(!this._pxBounds||!this._pxBounds.contains(r))return!1;for(S=0,Z=this._parts.length;S<Z;S++)for(u=this._parts[S],D=0,se=u.length,$=se-1;D<se;$=D++)h=u[D],m=u[$],h.y>r.y!=m.y>r.y&&r.x<(m.x-h.x)*(r.y-h.y)/(m.y-h.y)+h.x&&(a=!a);return a||Vi.prototype._containsPoint.call(this,r,!0)}});function gY(r,a){return new gl(r,a)}var Fi=Bi.extend({initialize:function(r,a){w(this,a),this._layers={},r&&this.addData(r)},addData:function(r){var a=M(r)?r:r.features,u,h,m;if(a){for(u=0,h=a.length;u<h;u++)m=a[u],(m.geometries||m.geometry||m.features||m.coordinates)&&this.addData(m);return this}var S=this.options;if(S.filter&&!S.filter(r))return this;var D=uh(r,S);return D?(D.feature=hh(r),D.defaultOptions=D.options,this.resetStyle(D),S.onEachFeature&&S.onEachFeature(r,D),this.addLayer(D)):this},resetStyle:function(r){return r===void 0?this.eachLayer(this.resetStyle,this):(r.options=o({},r.defaultOptions),this._setLayerStyle(r,this.options.style),this)},setStyle:function(r){return this.eachLayer(function(a){this._setLayerStyle(a,r)},this)},_setLayerStyle:function(r,a){r.setStyle&&(typeof a=="function"&&(a=a(r.feature)),r.setStyle(a))}});function uh(r,a){var u=r.type==="Feature"?r.geometry:r,h=u?u.coordinates:null,m=[],S=a&&a.pointToLayer,D=a&&a.coordsToLatLng||fg,$,Z,se,ye;if(!h&&!u)return null;switch(u.type){case"Point":return $=D(h),hb(S,r,$,a);case"MultiPoint":for(se=0,ye=h.length;se<ye;se++)$=D(h[se]),m.push(hb(S,r,$,a));return new Bi(m);case"LineString":case"MultiLineString":return Z=fh(h,u.type==="LineString"?0:1,D),new Vi(Z,a);case"Polygon":case"MultiPolygon":return Z=fh(h,u.type==="Polygon"?1:2,D),new gl(Z,a);case"GeometryCollection":for(se=0,ye=u.geometries.length;se<ye;se++){var Fe=uh({geometry:u.geometries[se],type:"Feature",properties:r.properties},a);Fe&&m.push(Fe)}return new Bi(m);case"FeatureCollection":for(se=0,ye=u.features.length;se<ye;se++){var Qe=uh(u.features[se],a);Qe&&m.push(Qe)}return new Bi(m);default:throw new Error("Invalid GeoJSON object.")}}function hb(r,a,u,h){return r?r(a,u):new lh(u,h&&h.markersInheritOptions&&h)}function fg(r){return new H(r[1],r[0],r[2])}function fh(r,a,u){for(var h=[],m=0,S=r.length,D;m<S;m++)D=a?fh(r[m],a-1,u):(u||fg)(r[m]),h.push(D);return h}function dg(r,a){return r=ie(r),r.alt!==void 0?[y(r.lng,a),y(r.lat,a),y(r.alt,a)]:[y(r.lng,a),y(r.lat,a)]}function dh(r,a,u,h){for(var m=[],S=0,D=r.length;S<D;S++)m.push(a?dh(r[S],sr(r[S])?0:a-1,u,h):dg(r[S],h));return!a&&u&&m.length>0&&m.push(m[0].slice()),m}function yl(r,a){return r.feature?o({},r.feature,{geometry:a}):hh(a)}function hh(r){return r.type==="Feature"||r.type==="FeatureCollection"?r:{type:"Feature",properties:{},geometry:r}}var hg={toGeoJSON:function(r){return yl(this,{type:"Point",coordinates:dg(this.getLatLng(),r)})}};lh.include(hg),ug.include(hg),ch.include(hg),Vi.include({toGeoJSON:function(r){var a=!sr(this._latlngs),u=dh(this._latlngs,a?1:0,!1,r);return yl(this,{type:(a?"Multi":"")+"LineString",coordinates:u})}}),gl.include({toGeoJSON:function(r){var a=!sr(this._latlngs),u=a&&!sr(this._latlngs[0]),h=dh(this._latlngs,u?2:a?1:0,!0,r);return a||(h=[h]),yl(this,{type:(u?"Multi":"")+"Polygon",coordinates:h})}}),ml.include({toMultiPoint:function(r){var a=[];return this.eachLayer(function(u){a.push(u.toGeoJSON(r).geometry.coordinates)}),yl(this,{type:"MultiPoint",coordinates:a})},toGeoJSON:function(r){var a=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(a==="MultiPoint")return this.toMultiPoint(r);var u=a==="GeometryCollection",h=[];return this.eachLayer(function(m){if(m.toGeoJSON){var S=m.toGeoJSON(r);if(u)h.push(S.geometry);else{var D=hh(S);D.type==="FeatureCollection"?h.push.apply(h,D.features):h.push(D)}}}),u?yl(this,{geometries:h,type:"GeometryCollection"}):{type:"FeatureCollection",features:h}}});function pb(r,a){return new Fi(r,a)}var yY=pb,ph=kr.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(r,a,u){this._url=r,this._bounds=k(a),w(this,u)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(qe(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Rt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(r){return this.options.opacity=r,this._image&&this._updateOpacity(),this},setStyle:function(r){return r.opacity&&this.setOpacity(r.opacity),this},bringToFront:function(){return this._map&&pl(this._image),this},bringToBack:function(){return this._map&&_l(this._image),this},setUrl:function(r){return this._url=r,this._image&&(this._image.src=r),this},setBounds:function(r){return this._bounds=k(r),this._map&&this._reset(),this},getEvents:function(){var r={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(r.zoomanim=this._animateZoom),r},setZIndex:function(r){return this.options.zIndex=r,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var r=this._url.tagName==="IMG",a=this._image=r?this._url:ht("img");if(qe(a,"leaflet-image-layer"),this._zoomAnimated&&qe(a,"leaflet-zoom-animated"),this.options.className&&qe(a,this.options.className),a.onselectstart=v,a.onmousemove=v,a.onload=c(this.fire,this,"load"),a.onerror=c(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(a.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),r){this._url=a.src;return}a.src=this._url,a.alt=this.options.alt},_animateZoom:function(r){var a=this._map.getZoomScale(r.zoom),u=this._map._latLngBoundsToNewLayerBounds(this._bounds,r.zoom,r.center).min;$a(this._image,u,a)},_reset:function(){var r=this._image,a=new _e(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),u=a.getSize();Zt(r,a.min),r.style.width=u.x+"px",r.style.height=u.y+"px"},_updateOpacity:function(){ar(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var r=this.options.errorOverlayUrl;r&&this._url!==r&&(this._url=r,this._image.src=r)},getCenter:function(){return this._bounds.getCenter()}}),SY=function(r,a,u){return new ph(r,a,u)},_b=ph.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var r=this._url.tagName==="VIDEO",a=this._image=r?this._url:ht("video");if(qe(a,"leaflet-image-layer"),this._zoomAnimated&&qe(a,"leaflet-zoom-animated"),this.options.className&&qe(a,this.options.className),a.onselectstart=v,a.onmousemove=v,a.onloadeddata=c(this.fire,this,"load"),r){for(var u=a.getElementsByTagName("source"),h=[],m=0;m<u.length;m++)h.push(u[m].src);this._url=u.length>0?h:[a.src];return}M(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(a.style,"objectFit")&&(a.style.objectFit="fill"),a.autoplay=!!this.options.autoplay,a.loop=!!this.options.loop,a.muted=!!this.options.muted,a.playsInline=!!this.options.playsInline;for(var S=0;S<this._url.length;S++){var D=ht("source");D.src=this._url[S],a.appendChild(D)}}});function wY(r,a,u){return new _b(r,a,u)}var mb=ph.extend({_initImage:function(){var r=this._image=this._url;qe(r,"leaflet-image-layer"),this._zoomAnimated&&qe(r,"leaflet-zoom-animated"),this.options.className&&qe(r,this.options.className),r.onselectstart=v,r.onmousemove=v}});function EY(r,a,u){return new mb(r,a,u)}var ti=kr.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(r,a){r&&(r instanceof H||M(r))?(this._latlng=ie(r),w(this,a)):(w(this,r),this._source=a),this.options.content&&(this._content=this.options.content)},openOn:function(r){return r=arguments.length?r:this._source._map,r.hasLayer(this)||r.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(r){return this._map?this.close():(arguments.length?this._source=r:r=this._source,this._prepareOpen(),this.openOn(r._map)),this},onAdd:function(r){this._zoomAnimated=r._zoomAnimated,this._container||this._initLayout(),r._fadeAnimated&&ar(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),r._fadeAnimated&&ar(this._container,1),this.bringToFront(),this.options.interactive&&(qe(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(r){r._fadeAnimated?(ar(this._container,0),this._removeTimeout=setTimeout(c(Rt,void 0,this._container),200)):Rt(this._container),this.options.interactive&&(Ft(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(r){return this._latlng=ie(r),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(r){return this._content=r,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var r={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(r.zoomanim=this._animateZoom),r},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&pl(this._container),this},bringToBack:function(){return this._map&&_l(this._container),this},_prepareOpen:function(r){var a=this._source;if(!a._map)return!1;if(a instanceof Bi){a=null;var u=this._source._layers;for(var h in u)if(u[h]._map){a=u[h];break}if(!a)return!1;this._source=a}if(!r)if(a.getCenter)r=a.getCenter();else if(a.getLatLng)r=a.getLatLng();else if(a.getBounds)r=a.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(r),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var r=this._contentNode,a=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof a=="string")r.innerHTML=a;else{for(;r.hasChildNodes();)r.removeChild(r.firstChild);r.appendChild(a)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var r=this._map.latLngToLayerPoint(this._latlng),a=re(this.options.offset),u=this._getAnchor();this._zoomAnimated?Zt(this._container,r.add(u)):a=a.add(r).add(u);var h=this._containerBottom=-a.y,m=this._containerLeft=-Math.round(this._containerWidth/2)+a.x;this._container.style.bottom=h+"px",this._container.style.left=m+"px"}},_getAnchor:function(){return[0,0]}});st.include({_initOverlay:function(r,a,u,h){var m=a;return m instanceof r||(m=new r(h).setContent(a)),u&&m.setLatLng(u),m}}),kr.include({_initOverlay:function(r,a,u,h){var m=u;return m instanceof r?(w(m,h),m._source=this):(m=a&&!h?a:new r(h,this),m.setContent(u)),m}});var _h=ti.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(r){return r=arguments.length?r:this._source._map,!r.hasLayer(this)&&r._popup&&r._popup.options.autoClose&&r.removeLayer(r._popup),r._popup=this,ti.prototype.openOn.call(this,r)},onAdd:function(r){ti.prototype.onAdd.call(this,r),r.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Io||this._source.on("preclick",za))},onRemove:function(r){ti.prototype.onRemove.call(this,r),r.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Io||this._source.off("preclick",za))},getEvents:function(){var r=ti.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(r.preclick=this.close),this.options.keepInView&&(r.moveend=this._adjustPan),r},_initLayout:function(){var r="leaflet-popup",a=this._container=ht("div",r+" "+(this.options.className||"")+" leaflet-zoom-animated"),u=this._wrapper=ht("div",r+"-content-wrapper",a);if(this._contentNode=ht("div",r+"-content",u),pu(a),ng(this._contentNode),We(a,"contextmenu",za),this._tipContainer=ht("div",r+"-tip-container",a),this._tip=ht("div",r+"-tip",this._tipContainer),this.options.closeButton){var h=this._closeButton=ht("a",r+"-close-button",a);h.setAttribute("role","button"),h.setAttribute("aria-label","Close popup"),h.href="#close",h.innerHTML='<span aria-hidden="true">&#215;</span>',We(h,"click",function(m){cn(m),this.close()},this)}},_updateLayout:function(){var r=this._contentNode,a=r.style;a.width="",a.whiteSpace="nowrap";var u=r.offsetWidth;u=Math.min(u,this.options.maxWidth),u=Math.max(u,this.options.minWidth),a.width=u+1+"px",a.whiteSpace="",a.height="";var h=r.offsetHeight,m=this.options.maxHeight,S="leaflet-popup-scrolled";m&&h>m?(a.height=m+"px",qe(r,S)):Ft(r,S),this._containerWidth=this._container.offsetWidth},_animateZoom:function(r){var a=this._map._latLngToNewLayerPoint(this._latlng,r.zoom,r.center),u=this._getAnchor();Zt(this._container,a.add(u))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var r=this._map,a=parseInt(uu(this._container,"marginBottom"),10)||0,u=this._container.offsetHeight+a,h=this._containerWidth,m=new x(this._containerLeft,-u-this._containerBottom);m._add(Ua(this._container));var S=r.layerPointToContainerPoint(m),D=re(this.options.autoPanPadding),$=re(this.options.autoPanPaddingTopLeft||D),Z=re(this.options.autoPanPaddingBottomRight||D),se=r.getSize(),ye=0,Fe=0;S.x+h+Z.x>se.x&&(ye=S.x+h-se.x+Z.x),S.x-ye-$.x<0&&(ye=S.x-$.x),S.y+u+Z.y>se.y&&(Fe=S.y+u-se.y+Z.y),S.y-Fe-$.y<0&&(Fe=S.y-$.y),(ye||Fe)&&(this.options.keepInView&&(this._autopanning=!0),r.fire("autopanstart").panBy([ye,Fe]))}},_getAnchor:function(){return re(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),TY=function(r,a){return new _h(r,a)};st.mergeOptions({closePopupOnClick:!0}),st.include({openPopup:function(r,a,u){return this._initOverlay(_h,r,a,u).openOn(this),this},closePopup:function(r){return r=arguments.length?r:this._popup,r&&r.close(),this}}),kr.include({bindPopup:function(r,a){return this._popup=this._initOverlay(_h,this._popup,r,a),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(r){return this._popup&&(this instanceof Bi||(this._popup._source=this),this._popup._prepareOpen(r||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(r){return this._popup&&this._popup.setContent(r),this},getPopup:function(){return this._popup},_openPopup:function(r){if(!(!this._popup||!this._map)){Ha(r);var a=r.layer||r.target;if(this._popup._source===a&&!(a instanceof Io)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(r.latlng);return}this._popup._source=a,this.openPopup(r.latlng)}},_movePopup:function(r){this._popup.setLatLng(r.latlng)},_onKeyPress:function(r){r.originalEvent.keyCode===13&&this._openPopup(r)}});var mh=ti.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(r){ti.prototype.onAdd.call(this,r),this.setOpacity(this.options.opacity),r.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(r){ti.prototype.onRemove.call(this,r),r.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var r=ti.prototype.getEvents.call(this);return this.options.permanent||(r.preclick=this.close),r},_initLayout:function(){var r="leaflet-tooltip",a=r+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ht("div",a),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+d(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(r){var a,u,h=this._map,m=this._container,S=h.latLngToContainerPoint(h.getCenter()),D=h.layerPointToContainerPoint(r),$=this.options.direction,Z=m.offsetWidth,se=m.offsetHeight,ye=re(this.options.offset),Fe=this._getAnchor();$==="top"?(a=Z/2,u=se):$==="bottom"?(a=Z/2,u=0):$==="center"?(a=Z/2,u=se/2):$==="right"?(a=0,u=se/2):$==="left"?(a=Z,u=se/2):D.x<S.x?($="right",a=0,u=se/2):($="left",a=Z+(ye.x+Fe.x)*2,u=se/2),r=r.subtract(re(a,u,!0)).add(ye).add(Fe),Ft(m,"leaflet-tooltip-right"),Ft(m,"leaflet-tooltip-left"),Ft(m,"leaflet-tooltip-top"),Ft(m,"leaflet-tooltip-bottom"),qe(m,"leaflet-tooltip-"+$),Zt(m,r)},_updatePosition:function(){var r=this._map.latLngToLayerPoint(this._latlng);this._setPosition(r)},setOpacity:function(r){this.options.opacity=r,this._container&&ar(this._container,r)},_animateZoom:function(r){var a=this._map._latLngToNewLayerPoint(this._latlng,r.zoom,r.center);this._setPosition(a)},_getAnchor:function(){return re(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),bY=function(r,a){return new mh(r,a)};st.include({openTooltip:function(r,a,u){return this._initOverlay(mh,r,a,u).openOn(this),this},closeTooltip:function(r){return r.close(),this}}),kr.include({bindTooltip:function(r,a){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(mh,this._tooltip,r,a),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(r){if(!(!r&&this._tooltipHandlersAdded)){var a=r?"off":"on",u={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?u.add=this._openTooltip:(u.mouseover=this._openTooltip,u.mouseout=this.closeTooltip,u.click=this._openTooltip,this._map?this._addFocusListeners():u.add=this._addFocusListeners),this._tooltip.options.sticky&&(u.mousemove=this._moveTooltip),this[a](u),this._tooltipHandlersAdded=!r}},openTooltip:function(r){return this._tooltip&&(this instanceof Bi||(this._tooltip._source=this),this._tooltip._prepareOpen(r)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(r){return this._tooltip&&this._tooltip.setContent(r),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(r){var a=typeof r.getElement=="function"&&r.getElement();a&&(We(a,"focus",function(){this._tooltip._source=r,this.openTooltip()},this),We(a,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(r){var a=typeof r.getElement=="function"&&r.getElement();a&&a.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(r){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var a=this;this._map.once("moveend",function(){a._openOnceFlag=!1,a._openTooltip(r)});return}this._tooltip._source=r.layer||r.target,this.openTooltip(this._tooltip.options.sticky?r.latlng:void 0)}},_moveTooltip:function(r){var a=r.latlng,u,h;this._tooltip.options.sticky&&r.originalEvent&&(u=this._map.mouseEventToContainerPoint(r.originalEvent),h=this._map.containerPointToLayerPoint(u),a=this._map.layerPointToLatLng(h)),this._tooltip.setLatLng(a)}});var vb=vl.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(r){var a=r&&r.tagName==="DIV"?r:document.createElement("div"),u=this.options;if(u.html instanceof Element?(nh(a),a.appendChild(u.html)):a.innerHTML=u.html!==!1?u.html:"",u.bgPos){var h=re(u.bgPos);a.style.backgroundPosition=-h.x+"px "+-h.y+"px"}return this._setIconStyles(a,"icon"),a},createShadow:function(){return null}});function NY(r){return new vb(r)}vl.Default=vu;var gu=kr.extend({options:{tileSize:256,opacity:1,updateWhenIdle:xe.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(r){w(this,r)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(r){r._addZoomLimit(this)},onRemove:function(r){this._removeAllTiles(),Rt(this._container),r._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(pl(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(_l(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(r){return this.options.opacity=r,this._updateOpacity(),this},setZIndex:function(r){return this.options.zIndex=r,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var r=this._clampZoom(this._map.getZoom());r!==this._tileZoom&&(this._tileZoom=r,this._updateLevels()),this._update()}return this},getEvents:function(){var r={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=p(this._onMoveEnd,this.options.updateInterval,this)),r.move=this._onMove),this._zoomAnimated&&(r.zoomanim=this._animateZoom),r},createTile:function(){return document.createElement("div")},getTileSize:function(){var r=this.options.tileSize;return r instanceof x?r:new x(r,r)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(r){for(var a=this.getPane().children,u=-r(-1/0,1/0),h=0,m=a.length,S;h<m;h++)S=a[h].style.zIndex,a[h]!==this._container&&S&&(u=r(u,+S));isFinite(u)&&(this.options.zIndex=u+r(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!xe.ielt9){ar(this._container,this.options.opacity);var r=+new Date,a=!1,u=!1;for(var h in this._tiles){var m=this._tiles[h];if(!(!m.current||!m.loaded)){var S=Math.min(1,(r-m.loaded)/200);ar(m.el,S),S<1?a=!0:(m.active?u=!0:this._onOpaqueTile(m),m.active=!0)}}u&&!this._noPrune&&this._pruneTiles(),a&&(ae(this._fadeFrame),this._fadeFrame=B(this._updateOpacity,this))}},_onOpaqueTile:v,_initContainer:function(){this._container||(this._container=ht("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var r=this._tileZoom,a=this.options.maxZoom;if(r!==void 0){for(var u in this._levels)u=Number(u),this._levels[u].el.children.length||u===r?(this._levels[u].el.style.zIndex=a-Math.abs(r-u),this._onUpdateLevel(u)):(Rt(this._levels[u].el),this._removeTilesAtZoom(u),this._onRemoveLevel(u),delete this._levels[u]);var h=this._levels[r],m=this._map;return h||(h=this._levels[r]={},h.el=ht("div","leaflet-tile-container leaflet-zoom-animated",this._container),h.el.style.zIndex=a,h.origin=m.project(m.unproject(m.getPixelOrigin()),r).round(),h.zoom=r,this._setZoomTransform(h,m.getCenter(),m.getZoom()),v(h.el.offsetWidth),this._onCreateLevel(h)),this._level=h,h}},_onUpdateLevel:v,_onRemoveLevel:v,_onCreateLevel:v,_pruneTiles:function(){if(this._map){var r,a,u=this._map.getZoom();if(u>this.options.maxZoom||u<this.options.minZoom){this._removeAllTiles();return}for(r in this._tiles)a=this._tiles[r],a.retain=a.current;for(r in this._tiles)if(a=this._tiles[r],a.current&&!a.active){var h=a.coords;this._retainParent(h.x,h.y,h.z,h.z-5)||this._retainChildren(h.x,h.y,h.z,h.z+2)}for(r in this._tiles)this._tiles[r].retain||this._removeTile(r)}},_removeTilesAtZoom:function(r){for(var a in this._tiles)this._tiles[a].coords.z===r&&this._removeTile(a)},_removeAllTiles:function(){for(var r in this._tiles)this._removeTile(r)},_invalidateAll:function(){for(var r in this._levels)Rt(this._levels[r].el),this._onRemoveLevel(Number(r)),delete this._levels[r];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(r,a,u,h){var m=Math.floor(r/2),S=Math.floor(a/2),D=u-1,$=new x(+m,+S);$.z=+D;var Z=this._tileCoordsToKey($),se=this._tiles[Z];return se&&se.active?(se.retain=!0,!0):(se&&se.loaded&&(se.retain=!0),D>h?this._retainParent(m,S,D,h):!1)},_retainChildren:function(r,a,u,h){for(var m=2*r;m<2*r+2;m++)for(var S=2*a;S<2*a+2;S++){var D=new x(m,S);D.z=u+1;var $=this._tileCoordsToKey(D),Z=this._tiles[$];if(Z&&Z.active){Z.retain=!0;continue}else Z&&Z.loaded&&(Z.retain=!0);u+1<h&&this._retainChildren(m,S,u+1,h)}},_resetView:function(r){var a=r&&(r.pinch||r.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),a,a)},_animateZoom:function(r){this._setView(r.center,r.zoom,!0,r.noUpdate)},_clampZoom:function(r){var a=this.options;return a.minNativeZoom!==void 0&&r<a.minNativeZoom?a.minNativeZoom:a.maxNativeZoom!==void 0&&a.maxNativeZoom<r?a.maxNativeZoom:r},_setView:function(r,a,u,h){var m=Math.round(a);this.options.maxZoom!==void 0&&m>this.options.maxZoom||this.options.minZoom!==void 0&&m<this.options.minZoom?m=void 0:m=this._clampZoom(m);var S=this.options.updateWhenZooming&&m!==this._tileZoom;(!h||S)&&(this._tileZoom=m,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),m!==void 0&&this._update(r),u||this._pruneTiles(),this._noPrune=!!u),this._setZoomTransforms(r,a)},_setZoomTransforms:function(r,a){for(var u in this._levels)this._setZoomTransform(this._levels[u],r,a)},_setZoomTransform:function(r,a,u){var h=this._map.getZoomScale(u,r.zoom),m=r.origin.multiplyBy(h).subtract(this._map._getNewPixelOrigin(a,u)).round();xe.any3d?$a(r.el,m,h):Zt(r.el,m)},_resetGrid:function(){var r=this._map,a=r.options.crs,u=this._tileSize=this.getTileSize(),h=this._tileZoom,m=this._map.getPixelWorldBounds(this._tileZoom);m&&(this._globalTileRange=this._pxBoundsToTileRange(m)),this._wrapX=a.wrapLng&&!this.options.noWrap&&[Math.floor(r.project([0,a.wrapLng[0]],h).x/u.x),Math.ceil(r.project([0,a.wrapLng[1]],h).x/u.y)],this._wrapY=a.wrapLat&&!this.options.noWrap&&[Math.floor(r.project([a.wrapLat[0],0],h).y/u.x),Math.ceil(r.project([a.wrapLat[1],0],h).y/u.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(r){var a=this._map,u=a._animatingZoom?Math.max(a._animateToZoom,a.getZoom()):a.getZoom(),h=a.getZoomScale(u,this._tileZoom),m=a.project(r,this._tileZoom).floor(),S=a.getSize().divideBy(h*2);return new _e(m.subtract(S),m.add(S))},_update:function(r){var a=this._map;if(a){var u=this._clampZoom(a.getZoom());if(r===void 0&&(r=a.getCenter()),this._tileZoom!==void 0){var h=this._getTiledPixelBounds(r),m=this._pxBoundsToTileRange(h),S=m.getCenter(),D=[],$=this.options.keepBuffer,Z=new _e(m.getBottomLeft().subtract([$,-$]),m.getTopRight().add([$,-$]));if(!(isFinite(m.min.x)&&isFinite(m.min.y)&&isFinite(m.max.x)&&isFinite(m.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var se in this._tiles){var ye=this._tiles[se].coords;(ye.z!==this._tileZoom||!Z.contains(new x(ye.x,ye.y)))&&(this._tiles[se].current=!1)}if(Math.abs(u-this._tileZoom)>1){this._setView(r,u);return}for(var Fe=m.min.y;Fe<=m.max.y;Fe++)for(var Qe=m.min.x;Qe<=m.max.x;Qe++){var Cn=new x(Qe,Fe);if(Cn.z=this._tileZoom,!!this._isValidTile(Cn)){var tn=this._tiles[this._tileCoordsToKey(Cn)];tn?tn.current=!0:D.push(Cn)}}if(D.sort(function(Ln,wl){return Ln.distanceTo(S)-wl.distanceTo(S)}),D.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var lr=document.createDocumentFragment();for(Qe=0;Qe<D.length;Qe++)this._addTile(D[Qe],lr);this._level.el.appendChild(lr)}}}},_isValidTile:function(r){var a=this._map.options.crs;if(!a.infinite){var u=this._globalTileRange;if(!a.wrapLng&&(r.x<u.min.x||r.x>u.max.x)||!a.wrapLat&&(r.y<u.min.y||r.y>u.max.y))return!1}if(!this.options.bounds)return!0;var h=this._tileCoordsToBounds(r);return k(this.options.bounds).overlaps(h)},_keyToBounds:function(r){return this._tileCoordsToBounds(this._keyToTileCoords(r))},_tileCoordsToNwSe:function(r){var a=this._map,u=this.getTileSize(),h=r.scaleBy(u),m=h.add(u),S=a.unproject(h,r.z),D=a.unproject(m,r.z);return[S,D]},_tileCoordsToBounds:function(r){var a=this._tileCoordsToNwSe(r),u=new U(a[0],a[1]);return this.options.noWrap||(u=this._map.wrapLatLngBounds(u)),u},_tileCoordsToKey:function(r){return r.x+":"+r.y+":"+r.z},_keyToTileCoords:function(r){var a=r.split(":"),u=new x(+a[0],+a[1]);return u.z=+a[2],u},_removeTile:function(r){var a=this._tiles[r];a&&(Rt(a.el),delete this._tiles[r],this.fire("tileunload",{tile:a.el,coords:this._keyToTileCoords(r)}))},_initTile:function(r){qe(r,"leaflet-tile");var a=this.getTileSize();r.style.width=a.x+"px",r.style.height=a.y+"px",r.onselectstart=v,r.onmousemove=v,xe.ielt9&&this.options.opacity<1&&ar(r,this.options.opacity)},_addTile:function(r,a){var u=this._getTilePos(r),h=this._tileCoordsToKey(r),m=this.createTile(this._wrapCoords(r),c(this._tileReady,this,r));this._initTile(m),this.createTile.length<2&&B(c(this._tileReady,this,r,null,m)),Zt(m,u),this._tiles[h]={el:m,coords:r,current:!0},a.appendChild(m),this.fire("tileloadstart",{tile:m,coords:r})},_tileReady:function(r,a,u){a&&this.fire("tileerror",{error:a,tile:u,coords:r});var h=this._tileCoordsToKey(r);u=this._tiles[h],u&&(u.loaded=+new Date,this._map._fadeAnimated?(ar(u.el,0),ae(this._fadeFrame),this._fadeFrame=B(this._updateOpacity,this)):(u.active=!0,this._pruneTiles()),a||(qe(u.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:u.el,coords:r})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),xe.ielt9||!this._map._fadeAnimated?B(this._pruneTiles,this):setTimeout(c(this._pruneTiles,this),250)))},_getTilePos:function(r){return r.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(r){var a=new x(this._wrapX?_(r.x,this._wrapX):r.x,this._wrapY?_(r.y,this._wrapY):r.y);return a.z=r.z,a},_pxBoundsToTileRange:function(r){var a=this.getTileSize();return new _e(r.min.unscaleBy(a).floor(),r.max.unscaleBy(a).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var r in this._tiles)if(!this._tiles[r].loaded)return!1;return!0}});function kY(r){return new gu(r)}var Sl=gu.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(r,a){this._url=r,a=w(this,a),a.detectRetina&&xe.retina&&a.maxZoom>0?(a.tileSize=Math.floor(a.tileSize/2),a.zoomReverse?(a.zoomOffset--,a.minZoom=Math.min(a.maxZoom,a.minZoom+1)):(a.zoomOffset++,a.maxZoom=Math.max(a.minZoom,a.maxZoom-1)),a.minZoom=Math.max(0,a.minZoom)):a.zoomReverse?a.minZoom=Math.min(a.maxZoom,a.minZoom):a.maxZoom=Math.max(a.minZoom,a.maxZoom),typeof a.subdomains=="string"&&(a.subdomains=a.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(r,a){return this._url===r&&a===void 0&&(a=!0),this._url=r,a||this.redraw(),this},createTile:function(r,a){var u=document.createElement("img");return We(u,"load",c(this._tileOnLoad,this,a,u)),We(u,"error",c(this._tileOnError,this,a,u)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(u.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(u.referrerPolicy=this.options.referrerPolicy),u.alt="",u.src=this.getTileUrl(r),u},getTileUrl:function(r){var a={r:xe.retina?"@2x":"",s:this._getSubdomain(r),x:r.x,y:r.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var u=this._globalTileRange.max.y-r.y;this.options.tms&&(a.y=u),a["-y"]=u}return C(this._url,o(a,this.options))},_tileOnLoad:function(r,a){xe.ielt9?setTimeout(c(r,this,null,a),0):r(null,a)},_tileOnError:function(r,a,u){var h=this.options.errorTileUrl;h&&a.getAttribute("src")!==h&&(a.src=h),r(u,a)},_onTileRemove:function(r){r.tile.onload=null},_getZoomForUrl:function(){var r=this._tileZoom,a=this.options.maxZoom,u=this.options.zoomReverse,h=this.options.zoomOffset;return u&&(r=a-r),r+h},_getSubdomain:function(r){var a=Math.abs(r.x+r.y)%this.options.subdomains.length;return this.options.subdomains[a]},_abortLoading:function(){var r,a;for(r in this._tiles)if(this._tiles[r].coords.z!==this._tileZoom&&(a=this._tiles[r].el,a.onload=v,a.onerror=v,!a.complete)){a.src=G;var u=this._tiles[r].coords;Rt(a),delete this._tiles[r],this.fire("tileabort",{tile:a,coords:u})}},_removeTile:function(r){var a=this._tiles[r];if(a)return a.el.setAttribute("src",G),gu.prototype._removeTile.call(this,r)},_tileReady:function(r,a,u){if(!(!this._map||u&&u.getAttribute("src")===G))return gu.prototype._tileReady.call(this,r,a,u)}});function gb(r,a){return new Sl(r,a)}var yb=Sl.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(r,a){this._url=r;var u=o({},this.defaultWmsParams);for(var h in a)h in this.options||(u[h]=a[h]);a=w(this,a);var m=a.detectRetina&&xe.retina?2:1,S=this.getTileSize();u.width=S.x*m,u.height=S.y*m,this.wmsParams=u},onAdd:function(r){this._crs=this.options.crs||r.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var a=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[a]=this._crs.code,Sl.prototype.onAdd.call(this,r)},getTileUrl:function(r){var a=this._tileCoordsToNwSe(r),u=this._crs,h=N(u.project(a[0]),u.project(a[1])),m=h.min,S=h.max,D=(this._wmsVersion>=1.3&&this._crs===fb?[m.y,m.x,S.y,S.x]:[m.x,m.y,S.x,S.y]).join(","),$=Sl.prototype.getTileUrl.call(this,r);return $+T(this.wmsParams,$,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+D},setParams:function(r,a){return o(this.wmsParams,r),a||this.redraw(),this}});function CY(r,a){return new yb(r,a)}Sl.WMS=yb,gb.wms=CY;var Yi=kr.extend({options:{padding:.1},initialize:function(r){w(this,r),d(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),qe(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var r={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(r.zoomanim=this._onAnimZoom),r},_onAnimZoom:function(r){this._updateTransform(r.center,r.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(r,a){var u=this._map.getZoomScale(a,this._zoom),h=this._map.getSize().multiplyBy(.5+this.options.padding),m=this._map.project(this._center,a),S=h.multiplyBy(-u).add(m).subtract(this._map._getNewPixelOrigin(r,a));xe.any3d?$a(this._container,S,u):Zt(this._container,S)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var r in this._layers)this._layers[r]._reset()},_onZoomEnd:function(){for(var r in this._layers)this._layers[r]._project()},_updatePaths:function(){for(var r in this._layers)this._layers[r]._update()},_update:function(){var r=this.options.padding,a=this._map.getSize(),u=this._map.containerPointToLayerPoint(a.multiplyBy(-r)).round();this._bounds=new _e(u,u.add(a.multiplyBy(1+r*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Sb=Yi.extend({options:{tolerance:0},getEvents:function(){var r=Yi.prototype.getEvents.call(this);return r.viewprereset=this._onViewPreReset,r},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Yi.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var r=this._container=document.createElement("canvas");We(r,"mousemove",this._onMouseMove,this),We(r,"click dblclick mousedown mouseup contextmenu",this._onClick,this),We(r,"mouseout",this._handleMouseOut,this),r._leaflet_disable_events=!0,this._ctx=r.getContext("2d")},_destroyContainer:function(){ae(this._redrawRequest),delete this._ctx,Rt(this._container),bt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var r;this._redrawBounds=null;for(var a in this._layers)r=this._layers[a],r._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Yi.prototype._update.call(this);var r=this._bounds,a=this._container,u=r.getSize(),h=xe.retina?2:1;Zt(a,r.min),a.width=h*u.x,a.height=h*u.y,a.style.width=u.x+"px",a.style.height=u.y+"px",xe.retina&&this._ctx.scale(2,2),this._ctx.translate(-r.min.x,-r.min.y),this.fire("update")}},_reset:function(){Yi.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(r){this._updateDashArray(r),this._layers[d(r)]=r;var a=r._order={layer:r,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=a),this._drawLast=a,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(r){this._requestRedraw(r)},_removePath:function(r){var a=r._order,u=a.next,h=a.prev;u?u.prev=h:this._drawLast=h,h?h.next=u:this._drawFirst=u,delete r._order,delete this._layers[d(r)],this._requestRedraw(r)},_updatePath:function(r){this._extendRedrawBounds(r),r._project(),r._update(),this._requestRedraw(r)},_updateStyle:function(r){this._updateDashArray(r),this._requestRedraw(r)},_updateDashArray:function(r){if(typeof r.options.dashArray=="string"){var a=r.options.dashArray.split(/[, ]+/),u=[],h,m;for(m=0;m<a.length;m++){if(h=Number(a[m]),isNaN(h))return;u.push(h)}r.options._dashArray=u}else r.options._dashArray=r.options.dashArray},_requestRedraw:function(r){this._map&&(this._extendRedrawBounds(r),this._redrawRequest=this._redrawRequest||B(this._redraw,this))},_extendRedrawBounds:function(r){if(r._pxBounds){var a=(r.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new _e,this._redrawBounds.extend(r._pxBounds.min.subtract([a,a])),this._redrawBounds.extend(r._pxBounds.max.add([a,a]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var r=this._redrawBounds;if(r){var a=r.getSize();this._ctx.clearRect(r.min.x,r.min.y,a.x,a.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var r,a=this._redrawBounds;if(this._ctx.save(),a){var u=a.getSize();this._ctx.beginPath(),this._ctx.rect(a.min.x,a.min.y,u.x,u.y),this._ctx.clip()}this._drawing=!0;for(var h=this._drawFirst;h;h=h.next)r=h.layer,(!a||r._pxBounds&&r._pxBounds.intersects(a))&&r._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(r,a){if(this._drawing){var u,h,m,S,D=r._parts,$=D.length,Z=this._ctx;if($){for(Z.beginPath(),u=0;u<$;u++){for(h=0,m=D[u].length;h<m;h++)S=D[u][h],Z[h?"lineTo":"moveTo"](S.x,S.y);a&&Z.closePath()}this._fillStroke(Z,r)}}},_updateCircle:function(r){if(!(!this._drawing||r._empty())){var a=r._point,u=this._ctx,h=Math.max(Math.round(r._radius),1),m=(Math.max(Math.round(r._radiusY),1)||h)/h;m!==1&&(u.save(),u.scale(1,m)),u.beginPath(),u.arc(a.x,a.y/m,h,0,Math.PI*2,!1),m!==1&&u.restore(),this._fillStroke(u,r)}},_fillStroke:function(r,a){var u=a.options;u.fill&&(r.globalAlpha=u.fillOpacity,r.fillStyle=u.fillColor||u.color,r.fill(u.fillRule||"evenodd")),u.stroke&&u.weight!==0&&(r.setLineDash&&r.setLineDash(a.options&&a.options._dashArray||[]),r.globalAlpha=u.opacity,r.lineWidth=u.weight,r.strokeStyle=u.color,r.lineCap=u.lineCap,r.lineJoin=u.lineJoin,r.stroke())},_onClick:function(r){for(var a=this._map.mouseEventToLayerPoint(r),u,h,m=this._drawFirst;m;m=m.next)u=m.layer,u.options.interactive&&u._containsPoint(a)&&(!(r.type==="click"||r.type==="preclick")||!this._map._draggableMoved(u))&&(h=u);this._fireEvent(h?[h]:!1,r)},_onMouseMove:function(r){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var a=this._map.mouseEventToLayerPoint(r);this._handleMouseHover(r,a)}},_handleMouseOut:function(r){var a=this._hoveredLayer;a&&(Ft(this._container,"leaflet-interactive"),this._fireEvent([a],r,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(r,a){if(!this._mouseHoverThrottled){for(var u,h,m=this._drawFirst;m;m=m.next)u=m.layer,u.options.interactive&&u._containsPoint(a)&&(h=u);h!==this._hoveredLayer&&(this._handleMouseOut(r),h&&(qe(this._container,"leaflet-interactive"),this._fireEvent([h],r,"mouseover"),this._hoveredLayer=h)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,r),this._mouseHoverThrottled=!0,setTimeout(c(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(r,a,u){this._map._fireDOMEvent(a,u||a.type,r)},_bringToFront:function(r){var a=r._order;if(a){var u=a.next,h=a.prev;if(u)u.prev=h;else return;h?h.next=u:u&&(this._drawFirst=u),a.prev=this._drawLast,this._drawLast.next=a,a.next=null,this._drawLast=a,this._requestRedraw(r)}},_bringToBack:function(r){var a=r._order;if(a){var u=a.next,h=a.prev;if(h)h.next=u;else return;u?u.prev=h:h&&(this._drawLast=h),a.prev=null,a.next=this._drawFirst,this._drawFirst.prev=a,this._drawFirst=a,this._requestRedraw(r)}}});function wb(r){return xe.canvas?new Sb(r):null}var yu=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(r){return document.createElement("<lvml:"+r+' class="lvml">')}}catch{}return function(r){return document.createElement("<"+r+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),PY={_initContainer:function(){this._container=ht("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Yi.prototype._update.call(this),this.fire("update"))},_initPath:function(r){var a=r._container=yu("shape");qe(a,"leaflet-vml-shape "+(this.options.className||"")),a.coordsize="1 1",r._path=yu("path"),a.appendChild(r._path),this._updateStyle(r),this._layers[d(r)]=r},_addPath:function(r){var a=r._container;this._container.appendChild(a),r.options.interactive&&r.addInteractiveTarget(a)},_removePath:function(r){var a=r._container;Rt(a),r.removeInteractiveTarget(a),delete this._layers[d(r)]},_updateStyle:function(r){var a=r._stroke,u=r._fill,h=r.options,m=r._container;m.stroked=!!h.stroke,m.filled=!!h.fill,h.stroke?(a||(a=r._stroke=yu("stroke")),m.appendChild(a),a.weight=h.weight+"px",a.color=h.color,a.opacity=h.opacity,h.dashArray?a.dashStyle=M(h.dashArray)?h.dashArray.join(" "):h.dashArray.replace(/( *, *)/g," "):a.dashStyle="",a.endcap=h.lineCap.replace("butt","flat"),a.joinstyle=h.lineJoin):a&&(m.removeChild(a),r._stroke=null),h.fill?(u||(u=r._fill=yu("fill")),m.appendChild(u),u.color=h.fillColor||h.color,u.opacity=h.fillOpacity):u&&(m.removeChild(u),r._fill=null)},_updateCircle:function(r){var a=r._point.round(),u=Math.round(r._radius),h=Math.round(r._radiusY||u);this._setPath(r,r._empty()?"M0 0":"AL "+a.x+","+a.y+" "+u+","+h+" 0,"+65535*360)},_setPath:function(r,a){r._path.v=a},_bringToFront:function(r){pl(r._container)},_bringToBack:function(r){_l(r._container)}},vh=xe.vml?yu:ze,Su=Yi.extend({_initContainer:function(){this._container=vh("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=vh("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Rt(this._container),bt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Yi.prototype._update.call(this);var r=this._bounds,a=r.getSize(),u=this._container;(!this._svgSize||!this._svgSize.equals(a))&&(this._svgSize=a,u.setAttribute("width",a.x),u.setAttribute("height",a.y)),Zt(u,r.min),u.setAttribute("viewBox",[r.min.x,r.min.y,a.x,a.y].join(" ")),this.fire("update")}},_initPath:function(r){var a=r._path=vh("path");r.options.className&&qe(a,r.options.className),r.options.interactive&&qe(a,"leaflet-interactive"),this._updateStyle(r),this._layers[d(r)]=r},_addPath:function(r){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(r._path),r.addInteractiveTarget(r._path)},_removePath:function(r){Rt(r._path),r.removeInteractiveTarget(r._path),delete this._layers[d(r)]},_updatePath:function(r){r._project(),r._update()},_updateStyle:function(r){var a=r._path,u=r.options;a&&(u.stroke?(a.setAttribute("stroke",u.color),a.setAttribute("stroke-opacity",u.opacity),a.setAttribute("stroke-width",u.weight),a.setAttribute("stroke-linecap",u.lineCap),a.setAttribute("stroke-linejoin",u.lineJoin),u.dashArray?a.setAttribute("stroke-dasharray",u.dashArray):a.removeAttribute("stroke-dasharray"),u.dashOffset?a.setAttribute("stroke-dashoffset",u.dashOffset):a.removeAttribute("stroke-dashoffset")):a.setAttribute("stroke","none"),u.fill?(a.setAttribute("fill",u.fillColor||u.color),a.setAttribute("fill-opacity",u.fillOpacity),a.setAttribute("fill-rule",u.fillRule||"evenodd")):a.setAttribute("fill","none"))},_updatePoly:function(r,a){this._setPath(r,Wt(r._parts,a))},_updateCircle:function(r){var a=r._point,u=Math.max(Math.round(r._radius),1),h=Math.max(Math.round(r._radiusY),1)||u,m="a"+u+","+h+" 0 1,0 ",S=r._empty()?"M0 0":"M"+(a.x-u)+","+a.y+m+u*2+",0 "+m+-u*2+",0 ";this._setPath(r,S)},_setPath:function(r,a){r._path.setAttribute("d",a)},_bringToFront:function(r){pl(r._path)},_bringToBack:function(r){_l(r._path)}});xe.vml&&Su.include(PY);function Eb(r){return xe.svg||xe.vml?new Su(r):null}st.include({getRenderer:function(r){var a=r.options.renderer||this._getPaneRenderer(r.options.pane)||this.options.renderer||this._renderer;return a||(a=this._renderer=this._createRenderer()),this.hasLayer(a)||this.addLayer(a),a},_getPaneRenderer:function(r){if(r==="overlayPane"||r===void 0)return!1;var a=this._paneRenderers[r];return a===void 0&&(a=this._createRenderer({pane:r}),this._paneRenderers[r]=a),a},_createRenderer:function(r){return this.options.preferCanvas&&wb(r)||Eb(r)}});var Tb=gl.extend({initialize:function(r,a){gl.prototype.initialize.call(this,this._boundsToLatLngs(r),a)},setBounds:function(r){return this.setLatLngs(this._boundsToLatLngs(r))},_boundsToLatLngs:function(r){return r=k(r),[r.getSouthWest(),r.getNorthWest(),r.getNorthEast(),r.getSouthEast()]}});function DY(r,a){return new Tb(r,a)}Su.create=vh,Su.pointsToPath=Wt,Fi.geometryToLayer=uh,Fi.coordsToLatLng=fg,Fi.coordsToLatLngs=fh,Fi.latLngToCoords=dg,Fi.latLngsToCoords=dh,Fi.getFeature=yl,Fi.asFeature=hh,st.mergeOptions({boxZoom:!0});var bb=ei.extend({initialize:function(r){this._map=r,this._container=r._container,this._pane=r._panes.overlayPane,this._resetStateTimeout=0,r.on("unload",this._destroy,this)},addHooks:function(){We(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){bt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Rt(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(r){if(!r.shiftKey||r.which!==1&&r.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),fu(),jv(),this._startPoint=this._map.mouseEventToContainerPoint(r),We(document,{contextmenu:Ha,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(r){this._moved||(this._moved=!0,this._box=ht("div","leaflet-zoom-box",this._container),qe(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(r);var a=new _e(this._point,this._startPoint),u=a.getSize();Zt(this._box,a.min),this._box.style.width=u.x+"px",this._box.style.height=u.y+"px"},_finish:function(){this._moved&&(Rt(this._box),Ft(this._container,"leaflet-crosshair")),du(),qv(),bt(document,{contextmenu:Ha,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(r){if(!(r.which!==1&&r.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(c(this._resetState,this),0);var a=new U(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(a).fire("boxzoomend",{boxZoomBounds:a})}},_onKeyDown:function(r){r.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});st.addInitHook("addHandler","boxZoom",bb),st.mergeOptions({doubleClickZoom:!0});var Nb=ei.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(r){var a=this._map,u=a.getZoom(),h=a.options.zoomDelta,m=r.originalEvent.shiftKey?u-h:u+h;a.options.doubleClickZoom==="center"?a.setZoom(m):a.setZoomAround(r.containerPoint,m)}});st.addInitHook("addHandler","doubleClickZoom",Nb),st.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var kb=ei.extend({addHooks:function(){if(!this._draggable){var r=this._map;this._draggable=new Oo(r._mapPane,r._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),r.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),r.on("zoomend",this._onZoomEnd,this),r.whenReady(this._onZoomEnd,this))}qe(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Ft(this._map._container,"leaflet-grab"),Ft(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var r=this._map;if(r._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var a=k(this._map.options.maxBounds);this._offsetLimit=N(this._map.latLngToContainerPoint(a.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(a.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;r.fire("movestart").fire("dragstart"),r.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(r){if(this._map.options.inertia){var a=this._lastTime=+new Date,u=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(u),this._times.push(a),this._prunePositions(a)}this._map.fire("move",r).fire("drag",r)},_prunePositions:function(r){for(;this._positions.length>1&&r-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var r=this._map.getSize().divideBy(2),a=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=a.subtract(r).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(r,a){return r-(r-a)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var r=this._draggable._newPos.subtract(this._draggable._startPos),a=this._offsetLimit;r.x<a.min.x&&(r.x=this._viscousLimit(r.x,a.min.x)),r.y<a.min.y&&(r.y=this._viscousLimit(r.y,a.min.y)),r.x>a.max.x&&(r.x=this._viscousLimit(r.x,a.max.x)),r.y>a.max.y&&(r.y=this._viscousLimit(r.y,a.max.y)),this._draggable._newPos=this._draggable._startPos.add(r)}},_onPreDragWrap:function(){var r=this._worldWidth,a=Math.round(r/2),u=this._initialWorldOffset,h=this._draggable._newPos.x,m=(h-a+u)%r+a-u,S=(h+a+u)%r-a-u,D=Math.abs(m+u)<Math.abs(S+u)?m:S;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=D},_onDragEnd:function(r){var a=this._map,u=a.options,h=!u.inertia||r.noInertia||this._times.length<2;if(a.fire("dragend",r),h)a.fire("moveend");else{this._prunePositions(+new Date);var m=this._lastPos.subtract(this._positions[0]),S=(this._lastTime-this._times[0])/1e3,D=u.easeLinearity,$=m.multiplyBy(D/S),Z=$.distanceTo([0,0]),se=Math.min(u.inertiaMaxSpeed,Z),ye=$.multiplyBy(se/Z),Fe=se/(u.inertiaDeceleration*D),Qe=ye.multiplyBy(-Fe/2).round();!Qe.x&&!Qe.y?a.fire("moveend"):(Qe=a._limitOffset(Qe,a.options.maxBounds),B(function(){a.panBy(Qe,{duration:Fe,easeLinearity:D,noMoveStart:!0,animate:!0})}))}}});st.addInitHook("addHandler","dragging",kb),st.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Cb=ei.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(r){this._map=r,this._setPanDelta(r.options.keyboardPanDelta),this._setZoomDelta(r.options.zoomDelta)},addHooks:function(){var r=this._map._container;r.tabIndex<=0&&(r.tabIndex="0"),We(r,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),bt(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var r=document.body,a=document.documentElement,u=r.scrollTop||a.scrollTop,h=r.scrollLeft||a.scrollLeft;this._map._container.focus(),window.scrollTo(h,u)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(r){var a=this._panKeys={},u=this.keyCodes,h,m;for(h=0,m=u.left.length;h<m;h++)a[u.left[h]]=[-1*r,0];for(h=0,m=u.right.length;h<m;h++)a[u.right[h]]=[r,0];for(h=0,m=u.down.length;h<m;h++)a[u.down[h]]=[0,r];for(h=0,m=u.up.length;h<m;h++)a[u.up[h]]=[0,-1*r]},_setZoomDelta:function(r){var a=this._zoomKeys={},u=this.keyCodes,h,m;for(h=0,m=u.zoomIn.length;h<m;h++)a[u.zoomIn[h]]=r;for(h=0,m=u.zoomOut.length;h<m;h++)a[u.zoomOut[h]]=-r},_addHooks:function(){We(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){bt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(r){if(!(r.altKey||r.ctrlKey||r.metaKey)){var a=r.keyCode,u=this._map,h;if(a in this._panKeys){if(!u._panAnim||!u._panAnim._inProgress)if(h=this._panKeys[a],r.shiftKey&&(h=re(h).multiplyBy(3)),u.options.maxBounds&&(h=u._limitOffset(re(h),u.options.maxBounds)),u.options.worldCopyJump){var m=u.wrapLatLng(u.unproject(u.project(u.getCenter()).add(h)));u.panTo(m)}else u.panBy(h)}else if(a in this._zoomKeys)u.setZoom(u.getZoom()+(r.shiftKey?3:1)*this._zoomKeys[a]);else if(a===27&&u._popup&&u._popup.options.closeOnEscapeKey)u.closePopup();else return;Ha(r)}}});st.addInitHook("addHandler","keyboard",Cb),st.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Pb=ei.extend({addHooks:function(){We(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){bt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(r){var a=JT(r),u=this._map.options.wheelDebounceTime;this._delta+=a,this._lastMousePos=this._map.mouseEventToContainerPoint(r),this._startTime||(this._startTime=+new Date);var h=Math.max(u-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(c(this._performZoom,this),h),Ha(r)},_performZoom:function(){var r=this._map,a=r.getZoom(),u=this._map.options.zoomSnap||0;r._stop();var h=this._delta/(this._map.options.wheelPxPerZoomLevel*4),m=4*Math.log(2/(1+Math.exp(-Math.abs(h))))/Math.LN2,S=u?Math.ceil(m/u)*u:m,D=r._limitZoom(a+(this._delta>0?S:-S))-a;this._delta=0,this._startTime=null,D&&(r.options.scrollWheelZoom==="center"?r.setZoom(a+D):r.setZoomAround(this._lastMousePos,a+D))}});st.addInitHook("addHandler","scrollWheelZoom",Pb);var xY=600;st.mergeOptions({tapHold:xe.touchNative&&xe.safari&&xe.mobile,tapTolerance:15});var Db=ei.extend({addHooks:function(){We(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){bt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(r){if(clearTimeout(this._holdTimeout),r.touches.length===1){var a=r.touches[0];this._startPos=this._newPos=new x(a.clientX,a.clientY),this._holdTimeout=setTimeout(c(function(){this._cancel(),this._isTapValid()&&(We(document,"touchend",cn),We(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",a))},this),xY),We(document,"touchend touchcancel contextmenu",this._cancel,this),We(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function r(){bt(document,"touchend",cn),bt(document,"touchend touchcancel",r)},_cancel:function(){clearTimeout(this._holdTimeout),bt(document,"touchend touchcancel contextmenu",this._cancel,this),bt(document,"touchmove",this._onMove,this)},_onMove:function(r){var a=r.touches[0];this._newPos=new x(a.clientX,a.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(r,a){var u=new MouseEvent(r,{bubbles:!0,cancelable:!0,view:window,screenX:a.screenX,screenY:a.screenY,clientX:a.clientX,clientY:a.clientY});u._simulated=!0,a.target.dispatchEvent(u)}});st.addInitHook("addHandler","tapHold",Db),st.mergeOptions({touchZoom:xe.touch,bounceAtZoomLimits:!0});var xb=ei.extend({addHooks:function(){qe(this._map._container,"leaflet-touch-zoom"),We(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Ft(this._map._container,"leaflet-touch-zoom"),bt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(r){var a=this._map;if(!(!r.touches||r.touches.length!==2||a._animatingZoom||this._zooming)){var u=a.mouseEventToContainerPoint(r.touches[0]),h=a.mouseEventToContainerPoint(r.touches[1]);this._centerPoint=a.getSize()._divideBy(2),this._startLatLng=a.containerPointToLatLng(this._centerPoint),a.options.touchZoom!=="center"&&(this._pinchStartLatLng=a.containerPointToLatLng(u.add(h)._divideBy(2))),this._startDist=u.distanceTo(h),this._startZoom=a.getZoom(),this._moved=!1,this._zooming=!0,a._stop(),We(document,"touchmove",this._onTouchMove,this),We(document,"touchend touchcancel",this._onTouchEnd,this),cn(r)}},_onTouchMove:function(r){if(!(!r.touches||r.touches.length!==2||!this._zooming)){var a=this._map,u=a.mouseEventToContainerPoint(r.touches[0]),h=a.mouseEventToContainerPoint(r.touches[1]),m=u.distanceTo(h)/this._startDist;if(this._zoom=a.getScaleZoom(m,this._startZoom),!a.options.bounceAtZoomLimits&&(this._zoom<a.getMinZoom()&&m<1||this._zoom>a.getMaxZoom()&&m>1)&&(this._zoom=a._limitZoom(this._zoom)),a.options.touchZoom==="center"){if(this._center=this._startLatLng,m===1)return}else{var S=u._add(h)._divideBy(2)._subtract(this._centerPoint);if(m===1&&S.x===0&&S.y===0)return;this._center=a.unproject(a.project(this._pinchStartLatLng,this._zoom).subtract(S),this._zoom)}this._moved||(a._moveStart(!0,!1),this._moved=!0),ae(this._animRequest);var D=c(a._move,a,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=B(D,this,!0),cn(r)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,ae(this._animRequest),bt(document,"touchmove",this._onTouchMove,this),bt(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});st.addInitHook("addHandler","touchZoom",xb),st.BoxZoom=bb,st.DoubleClickZoom=Nb,st.Drag=kb,st.Keyboard=Cb,st.ScrollWheelZoom=Pb,st.TapHold=Db,st.TouchZoom=xb,n.Bounds=_e,n.Browser=xe,n.CRS=O,n.Canvas=Sb,n.Circle=ug,n.CircleMarker=ch,n.Class=P,n.Control=Nr,n.DivIcon=vb,n.DivOverlay=ti,n.DomEvent=j2,n.DomUtil=Z2,n.Draggable=Oo,n.Evented=W,n.FeatureGroup=Bi,n.GeoJSON=Fi,n.GridLayer=gu,n.Handler=ei,n.Icon=vl,n.ImageOverlay=ph,n.LatLng=H,n.LatLngBounds=U,n.Layer=kr,n.LayerGroup=ml,n.LineUtil=sY,n.Map=st,n.Marker=lh,n.Mixin=tY,n.Path=Io,n.Point=x,n.PolyUtil=nY,n.Polygon=gl,n.Polyline=Vi,n.Popup=_h,n.PosAnimation=QT,n.Projection=lY,n.Rectangle=Tb,n.Renderer=Yi,n.SVG=Su,n.SVGOverlay=mb,n.TileLayer=Sl,n.Tooltip=mh,n.Transformation=Oe,n.Util=he,n.VideoOverlay=_b,n.bind=c,n.bounds=N,n.canvas=wb,n.circle=mY,n.circleMarker=_Y,n.control=_u,n.divIcon=NY,n.extend=o,n.featureGroup=dY,n.geoJSON=pb,n.geoJson=yY,n.gridLayer=kY,n.icon=hY,n.imageOverlay=SY,n.latLng=ie,n.latLngBounds=k,n.layerGroup=fY,n.map=q2,n.marker=pY,n.point=re,n.polygon=gY,n.polyline=vY,n.popup=TY,n.rectangle=DY,n.setOptions=w,n.stamp=d,n.svg=Eb,n.svgOverlay=EY,n.tileLayer=gb,n.tooltip=bY,n.transformation=Ge,n.version=i,n.videoOverlay=wY;var OY=window.L;n.noConflict=function(){return window.L=OY,this},window.L=n})}($l,$l.exports)),$l.exports}var XO=KO();const Ul=jO(XO),JO=l.defineComponent({__name:"CapeRecordMap",props:{lat:{},long:{},zoom:{},icon:{}},setup(e){const t=e,n=l.ref(null);let i=null,o=null;function s(){if(i){i.setView([t.lat,t.long],t.zoom),o&&o.setLatLng([t.lat,t.long]);return}if(n.value){i=Ul.map(n.value).setView([t.lat,t.long],t.zoom),Ul.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:"&copy; OpenStreetMap contributors"}).addTo(i);const c=t.icon??new Ul.Icon.Default;o=Ul.marker([t.lat,t.long],{icon:c}).addTo(i)}}return l.onMounted(()=>{s()}),l.watch(()=>[t.lat,t.long,t.zoom,t.icon],()=>{if(i){if(i.setView([t.lat,t.long],t.zoom),o){o.setLatLng([t.lat,t.long]);const c=t.icon??new Ul.Icon.Default;o.setIcon(c)}}else s()}),(c,f)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"mapRef",ref:n,class:"leaflet-map"},null,512))}}),QO={key:0,class:"cape-next-result"},eI={key:1,class:"cape-next-result cape-next-result-null"},tI=l.defineComponent({__name:"CapeNextResult",props:{record:{type:Object,required:!0},linkTitle:{type:String,required:!1,default:"Next record in search results"}},setup(e){const t=mn(),n=e,i=l.computed(()=>{if(n.record!==void 0)return t.next(n.record)});return(o,s)=>{const c=l.resolveComponent("cape-record-label"),f=l.resolveComponent("cape-record-link");return i.value!==void 0?(l.openBlock(),l.createElementBlock("div",QO,[l.renderSlot(o.$slots,"before"),l.createVNode(f,{record:i.value,title:e.linkTitle},{default:l.withCtx(()=>[l.renderSlot(o.$slots,"link",{},()=>[l.createVNode(c,{record:i.value},null,8,["record"])])]),_:3},8,["record","title"]),l.renderSlot(o.$slots,"after")])):(l.openBlock(),l.createElementBlock("div",eI,[l.renderSlot(o.$slots,"otherwise")]))}}}),nI={key:0,class:"cape-previous-result"},rI={key:1,class:"cape-previous-result cape-previous-result-null"},iI=l.defineComponent({__name:"CapePreviousResult",props:{record:{type:Object,required:!0},linkTitle:{type:String,required:!1,default:"Previous record in dataset"}},setup(e){const t=mn(),n=e,i=l.computed(()=>{if(n.record!==void 0)return t.previous(n.record)});return(o,s)=>{const c=l.resolveComponent("cape-record-label"),f=l.resolveComponent("cape-record-link");return i.value!==void 0?(l.openBlock(),l.createElementBlock("div",nI,[l.renderSlot(o.$slots,"before"),l.createVNode(f,{record:i.value,title:e.linkTitle},{default:l.withCtx(()=>[l.renderSlot(o.$slots,"link",{},()=>[l.createVNode(c,{record:i.value},null,8,["record"])])]),_:3},8,["record","title"]),l.renderSlot(o.$slots,"after")])):(l.openBlock(),l.createElementBlock("div",rI,[l.renderSlot(o.$slots,"otherwise")]))}}}),oI={key:0,class:"cape-previous-record"},aI={key:1,class:"cape-previous-record cape-previous-record-null"},sI=l.defineComponent({__name:"CapePreviousRecord",props:{record:{type:Object,required:!0},linkTitle:{type:String,required:!1,default:"Previous record in dataset"}},setup(e){const t=oi(),n=e,i=l.computed(()=>{if(n.record!==void 0)return t.previous(n.record)});return(o,s)=>{const c=l.resolveComponent("cape-record-label"),f=l.resolveComponent("cape-record-link");return i.value!==void 0?(l.openBlock(),l.createElementBlock("div",oI,[l.renderSlot(o.$slots,"before"),l.createVNode(f,{record:i.value,title:e.linkTitle},{default:l.withCtx(()=>[l.renderSlot(o.$slots,"link",{},()=>[l.createVNode(c,{record:i.value},null,8,["record"])])]),_:3},8,["record","title"]),l.renderSlot(o.$slots,"after")])):(l.openBlock(),l.createElementBlock("div",aI,[l.renderSlot(o.$slots,"otherwise")]))}}}),lI={key:0,class:"cape-next-record"},cI={key:1,class:"cape-next-record cape-next-record-null"},uI=l.defineComponent({__name:"CapeNextRecord",props:{record:{type:Object,required:!0},linkTitle:{type:String,required:!1,default:"Next record in dataset"}},setup(e){const t=oi(),n=e,i=l.computed(()=>{if(n.record!==void 0)return t.next(n.record)});return(o,s)=>{const c=l.resolveComponent("cape-record-label"),f=l.resolveComponent("cape-record-link");return i.value!==void 0?(l.openBlock(),l.createElementBlock("div",lI,[l.renderSlot(o.$slots,"before"),l.createVNode(f,{record:i.value,title:e.linkTitle},{default:l.withCtx(()=>[l.renderSlot(o.$slots,"link",{},()=>[l.createVNode(c,{record:i.value},null,8,["record"])])]),_:3},8,["record","title"]),l.renderSlot(o.$slots,"after")])):(l.openBlock(),l.createElementBlock("div",cI,[l.renderSlot(o.$slots,"otherwise")]))}}}),ul=class ul{static add(t){ul.functions.push(t)}static all(){return ul.functions}static async execute(t,n){for(const i of ul.all().sort((o,s)=>o.priority-s.priority))try{await i.action(t,n)}catch(o){console.error("Error executing action:",o);return}}};Ke(ul,"functions",[]);let zl=ul;const w0={High:10,Low:1e3},Ba=class Ba{static async fetchIndexPageTitle(){if(Ba.indexHtmlTitle)return Ba.indexHtmlTitle;try{const t=await fetch("/index.html");if(!t.ok)return;const n=await t.text(),s=new DOMParser().parseFromString(n,"text/html").querySelector("title");return Ba.indexHtmlTitle=(s==null?void 0:s.text)||void 0,Ba.indexHtmlTitle}catch{return}}static async getPageTitle(t,n){const{name:i,params:o,meta:s}=t;if(i==="record"&&n.recordPageTitleExpression){const d=o==null?void 0:o.id;if(!d)throw new Error("Record ID is required but not specified.");if(Zi().status!=="OK")throw new Error("Dataset data not loaded. Cannot continue to build page title.");const v=oi().byId(d);return n.recordPageTitleExpression(v)}if(s!=null&&s.title)return s.title;const c=await this.fetchIndexPageTitle();return c||nn().title}};Ke(Ba,"indexHtmlTitle");let Ep=Ba;const fI={class:"cape-labelled-value"},dI={key:0,class:"cape-error cape-labelled-value-error"},hI=["title"],pI={key:1,class:"cape-labelled-value-label"},_I=l.defineComponent({__name:"CapeLabelledContent",props:{fieldValue:{},link:{}},setup(e){const t=e,n=l.computed(()=>{var i;return(i=t.fieldValue)==null?void 0:i.field});return(i,o)=>(l.openBlock(),l.createElementBlock("div",fI,[!i.fieldValue||!n.value?(l.openBlock(),l.createElementBlock("div",dI," [Error, trying to render label for a non-existent field] ")):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[n.value.description!==void 0&&n.value.description!==""?(l.openBlock(),l.createElementBlock("div",{key:0,title:n.value.description,class:"cape-labelled-value-label","data-toggle":"tooltip"},l.toDisplayString(n.value.label),9,hI)):(l.openBlock(),l.createElementBlock("div",pI,l.toDisplayString(n.value.label),1)),l.renderSlot(i.$slots,"default")],64))]))}}),mI=l.defineComponent({__name:"CapeLinkValue",props:{fieldValuePair:{}},setup(e){const t=e,n=Yt(),i=l.computed(()=>t.fieldValuePair.value),o=l.computed(()=>t.fieldValuePair.field),s=l.computed(()=>{const c="/",f={};try{n.byId(`field-${o.value.id}`).display==="advanced"&&(f.advanced="true"),f.jump="true",f[`field-${o.value.id}-mode`]="is",f[`field-${o.value.id}-term`]=`${i.value}`}catch{console.error(`Attempt to create link from field ${o.value.id} which has no related filter.`)}return{path:c,query:f}});return(c,f)=>{const d=l.resolveComponent("router-link");return l.openBlock(),l.createBlock(d,{to:s.value},{default:l.withCtx(()=>[l.renderSlot(c.$slots,"default")]),_:3},8,["to"])}}}),vI=l.defineComponent({__name:"CapePercentageValue",props:{value:{type:String,required:!0},digits:{type:Number,required:!1}},setup(e){const t=e,n=l.computed(()=>{if(t.value===void 0)return"";const i=parseFloat(t.value);return isNaN(i)?"":t.digits===void 0?i*100+"%":(i*100).toFixed(t.digits)+"%"});return(i,o)=>l.toDisplayString(n.value)}}),gI=l.defineComponent({__name:"CapeFixedNumericValue",props:{value:String,digits:Number},setup(e){const t=e,n=l.computed(()=>{if(t.value===void 0)return"";const i=parseFloat(t.value);return isNaN(i)?"":i.toFixed(t.digits)});return(i,o)=>l.toDisplayString(n.value)}}),yI={__name:"CapeShowAllResultsToggle",setup(e){const t=mn();return(n,i)=>l.withDirectives((l.openBlock(),l.createElementBlock("input",{"data-test":"show-all-filters","onUpdate:modelValue":i[0]||(i[0]=o=>l.unref(t).showAllResults=o),type:"checkbox",class:"cape-show-all-results-toggle"},null,512)),[[l.vModelCheckbox,l.unref(t).showAllResults]])}},SI={key:0,class:"cape-results-info"},wI={key:0},EI={key:1},TI={key:1,class:"cape-results-count"},bI=l.defineComponent({__name:"CapeResultsInfo",setup(e){const t=mn();return(n,i)=>l.unref(t).allResultsAreVisible?(l.openBlock(),l.createElementBlock("div",SI,[l.unref(t).visibleCount==1?(l.openBlock(),l.createElementBlock("div",wI,"Showing 1 matching record.")):(l.openBlock(),l.createElementBlock("div",EI,"Showing all "+l.toDisplayString(l.unref(t).visibleCount)+" matching records.",1))])):(l.openBlock(),l.createElementBlock("div",TI," Showing first "+l.toDisplayString(l.unref(t).visibleCount)+" of "+l.toDisplayString(l.unref(t).totalCount)+" matching records. ",1))}}),NI={class:"cape-results-count"},kI=l.defineComponent({__name:"CapeResultsCount",setup(e){const t=mn();return(n,i)=>(l.openBlock(),l.createElementBlock("span",NI,l.toDisplayString(l.unref(t).totalCount),1))}}),CI={class:"cape-filter-field-enum-is-radio"},PI={class:"form-check form-check-inline"},DI=["id"],xI=["for"],OI=["id","value"],II=["for"],RI=l.defineComponent({__name:"CapeFilterFieldEnumIsRadio",props:{filterId:{}},setup(e){const t=e,i=Yt().byId(t.filterId),o=i.field;return(s,c)=>(l.openBlock(),l.createElementBlock("ul",CI,[l.createElementVNode("li",PI,[l.withDirectives(l.createElementVNode("input",{id:"cape-filter-field-input-"+l.unref(i).id+"-","onUpdate:modelValue":c[0]||(c[0]=f=>l.unref(i).isTerm=f),type:"radio",value:""},null,8,DI),[[l.vModelRadio,l.unref(i).isTerm]]),l.createElementVNode("label",{for:"cape-filter-field-input-"+l.unref(i).id+"-"},c[2]||(c[2]=[l.createElementVNode("em",null,"any",-1)]),8,xI)]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(o).values,f=>(l.openBlock(),l.createElementBlock("li",{key:f},[l.withDirectives(l.createElementVNode("input",{id:"cape-filter-field-input-"+l.unref(i).id+"-"+f,"onUpdate:modelValue":c[1]||(c[1]=d=>l.unref(i).isTerm=d),value:f,type:"radio"},null,8,OI),[[l.vModelRadio,l.unref(i).isTerm]]),l.createElementVNode("label",{for:"cape-filter-field-input-"+l.unref(i).id+"-"+f},l.toDisplayString(f),9,II)]))),128))]))}}),LI=["aria-label"],MI=["value"],AI=l.defineComponent({__name:"CapeFilterFieldEnumIsSelect",props:{filterId:{}},setup(e){const t=e,i=Yt().byId(t.filterId),o=i.field;return(s,c)=>l.withDirectives((l.openBlock(),l.createElementBlock("select",{class:"cape-filter-field-enum-is-select","onUpdate:modelValue":c[0]||(c[0]=f=>l.unref(i).isTerm=f),"aria-label":"Select "+l.unref(o).label+" value."},[c[1]||(c[1]=l.createElementVNode("option",{key:"",value:""},null,-1)),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(o).values,f=>(l.openBlock(),l.createElementBlock("option",{key:f,value:f},l.toDisplayString(f),9,MI))),128))],8,LI)),[[l.vModelSelect,l.unref(i).isTerm]])}}),BI={class:"cape-filter-field-enum-one-of-checkbox"},VI=["id","value"],FI=["for"],YI=l.defineComponent({__name:"CapeFilterFieldEnumOneOfCheckbox",props:{filterId:{}},setup(e){const t=e,i=Yt().byId(t.filterId),o=i.field;return(s,c)=>(l.openBlock(),l.createElementBlock("ul",BI,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(o).values,f=>(l.openBlock(),l.createElementBlock("li",{key:f},[l.withDirectives(l.createElementVNode("input",{id:"cape-filter-field-input-"+l.unref(i).id+"-"+f,"onUpdate:modelValue":c[0]||(c[0]=d=>l.unref(i).oneOfTerms=d),value:f,type:"checkbox"},null,8,VI),[[l.vModelCheckbox,l.unref(i).oneOfTerms]]),l.createElementVNode("label",{for:"cape-filter-field-input-"+l.unref(i).id+"-"+f},l.toDisplayString(f),9,FI)]))),128))]))}});function Tp(e){return e===0?!1:Array.isArray(e)&&e.length===0?!0:!e}function $I(e){return(...t)=>!e(...t)}function UI(e,t){return e===void 0&&(e="undefined"),e===null&&(e="null"),e===!1&&(e="false"),e.toString().toLowerCase().indexOf(t.trim())!==-1}function zI(e){return e.filter(t=>!t.$isLabel)}function bp(e,t){return n=>n.reduce((i,o)=>o[e]&&o[e].length?(i.push({$groupLabel:o[t],$isLabel:!0}),i.concat(o[e])):i,[])}const E0=(...e)=>t=>e.reduce((n,i)=>i(n),t);var HI={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 Tp(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},filteringSortFunc:{type:Function,default:null}},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):this.filterOptions(n,t,this.label,this.customLabel):n=this.groupValues?bp(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter($I(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 E0(this.filterGroups(t,n,this.groupValues,this.groupLabel,this.customLabel),bp(this.groupValues,this.groupLabel))(e)},flatAndStrip(e){return E0(bp(this.groupValues,this.groupLabel),zI)(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(Tp(e))return"";if(e.isTag)return e.label;if(e.$isLabel)return e.$groupLabel;const t=this.customLabel(e,this.label);return Tp(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.trackBy?t[this.groupValues].map(o=>o[this.trackBy]):t[this.groupValues],i=this.internalValue.filter(o=>n.indexOf(this.trackBy?o[this.trackBy]:o)===-1);this.$emit("update:modelValue",i)}else{const n=t[this.groupValues].filter(i=>!(this.isOptionDisabled(i)||this.isSelected(i)));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 i=this.internalValue.slice(0,n).concat(this.internalValue.slice(n+1));this.$emit("update:modelValue",i)}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))},filterOptions(e,t,n,i){return t?e.filter(o=>UI(i(o,n),t)).sort((o,s)=>typeof this.filteringSortFunc=="function"?this.filteringSortFunc(o,s):i(o,n).length-i(s,n).length):e},filterGroups(e,t,n,i,o){return s=>s.map(c=>{if(!c[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const f=this.filterOptions(c[n],e,t,o);return f.length?{[i]:c[i],[n]:f}:[]})}}},WI={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(i=>i[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}}},T0={name:"vue-multiselect",mixins:[HI,WI],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},spellcheck:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0},required:{type:Boolean,default:!1}},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)},isRequired(){return this.required===!1?!1:this.internalValue.length<=0}}};const ZI=["tabindex","aria-expanded","aria-owns","aria-activedescendant"],GI={ref:"tags",class:"multiselect__tags"},jI={class:"multiselect__tags-wrap"},qI=["textContent"],KI=["onKeypress","onMousedown"],XI=["textContent"],JI={class:"multiselect__spinner"},QI=["name","id","spellcheck","placeholder","required","value","disabled","tabindex","aria-label","aria-controls"],eR=["id","aria-multiselectable"],tR={key:0},nR={class:"multiselect__option"},rR=["aria-selected","id","role"],iR=["onClick","onMouseenter","data-select","data-selected","data-deselect"],oR=["data-select","data-deselect","onMouseenter","onMousedown"],aR={class:"multiselect__option"},sR={class:"multiselect__option"};function lR(e,t,n,i,o,s){return l.openBlock(),l.createElementBlock("div",{tabindex:e.searchable?-1:n.tabindex,class:l.normalizeClass([{"multiselect--active":e.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":s.isAbove,"multiselect--has-options-group":s.hasOptionGroup},"multiselect"]),onFocus:t[14]||(t[14]=c=>e.activate()),onBlur:t[15]||(t[15]=c=>e.searchable?!1:e.deactivate()),onKeydown:[t[16]||(t[16]=l.withKeys(l.withModifiers(c=>e.pointerForward(),["self","prevent"]),["down"])),t[17]||(t[17]=l.withKeys(l.withModifiers(c=>e.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:t[18]||(t[18]=l.withKeys(l.withModifiers(c=>e.addPointerElement(c),["stop","self"]),["enter","tab"])),onKeyup:t[19]||(t[19]=l.withKeys(c=>e.deactivate(),["esc"])),role:"combobox","aria-expanded":e.isOpen,"aria-owns":"listbox-"+e.id,"aria-activedescendant":e.isOpen&&e.pointer!==null?e.id+"-"+e.pointer:null},[l.renderSlot(e.$slots,"caret",{toggle:e.toggle},()=>[l.createElementVNode("div",{onMousedown:t[0]||(t[0]=l.withModifiers(c=>e.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),l.renderSlot(e.$slots,"clear",{search:e.search}),l.createElementVNode("div",GI,[l.renderSlot(e.$slots,"selection",{search:e.search,remove:e.removeElement,values:s.visibleValues,isOpen:e.isOpen},()=>[l.withDirectives(l.createElementVNode("div",jI,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s.visibleValues,(c,f)=>l.renderSlot(e.$slots,"tag",{option:c,search:e.search,remove:e.removeElement},()=>[(l.openBlock(),l.createElementBlock("span",{class:"multiselect__tag",key:f,onMousedown:t[1]||(t[1]=l.withModifiers(()=>{},["prevent"]))},[l.createElementVNode("span",{textContent:l.toDisplayString(e.getOptionLabel(c))},null,8,qI),l.createElementVNode("i",{tabindex:"1",onKeypress:l.withKeys(l.withModifiers(d=>e.removeElement(c),["prevent"]),["enter"]),onMousedown:l.withModifiers(d=>e.removeElement(c),["prevent"]),class:"multiselect__tag-icon"},null,40,KI)],32))])),256))],512),[[l.vShow,s.visibleValues.length>0]]),e.internalValue&&e.internalValue.length>n.limit?l.renderSlot(e.$slots,"limit",{key:0},()=>[l.createElementVNode("strong",{class:"multiselect__strong",textContent:l.toDisplayString(n.limitText(e.internalValue.length-n.limit))},null,8,XI)]):l.createCommentVNode("v-if",!0)]),l.createVNode(l.Transition,{name:"multiselect__loading"},{default:l.withCtx(()=>[l.renderSlot(e.$slots,"loading",{},()=>[l.withDirectives(l.createElementVNode("div",JI,null,512),[[l.vShow,n.loading]])])]),_:3}),e.searchable?(l.openBlock(),l.createElementBlock("input",{key:0,ref:"search",name:n.name,id:e.id,type:"text",autocomplete:"off",spellcheck:n.spellcheck,placeholder:e.placeholder,required:s.isRequired,style:l.normalizeStyle(s.inputStyle),value:e.search,disabled:n.disabled,tabindex:n.tabindex,"aria-label":n.name+"-searchbox",onInput:t[2]||(t[2]=c=>e.updateSearch(c.target.value)),onFocus:t[3]||(t[3]=l.withModifiers(c=>e.activate(),["prevent"])),onBlur:t[4]||(t[4]=l.withModifiers(c=>e.deactivate(),["prevent"])),onKeyup:t[5]||(t[5]=l.withKeys(c=>e.deactivate(),["esc"])),onKeydown:[t[6]||(t[6]=l.withKeys(l.withModifiers(c=>e.pointerForward(),["prevent"]),["down"])),t[7]||(t[7]=l.withKeys(l.withModifiers(c=>e.pointerBackward(),["prevent"]),["up"])),t[9]||(t[9]=l.withKeys(l.withModifiers(c=>e.removeLastElement(),["stop"]),["delete"]))],onKeypress:t[8]||(t[8]=l.withKeys(l.withModifiers(c=>e.addPointerElement(c),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+e.id},null,44,QI)):l.createCommentVNode("v-if",!0),s.isSingleLabelVisible?(l.openBlock(),l.createElementBlock("span",{key:1,class:"multiselect__single",onMousedown:t[10]||(t[10]=l.withModifiers((...c)=>e.toggle&&e.toggle(...c),["prevent"]))},[l.renderSlot(e.$slots,"singleLabel",{option:s.singleValue},()=>[l.createTextVNode(l.toDisplayString(e.currentOptionLabel),1)])],32)):l.createCommentVNode("v-if",!0),s.isPlaceholderVisible?(l.openBlock(),l.createElementBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:t[11]||(t[11]=l.withModifiers((...c)=>e.toggle&&e.toggle(...c),["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",persisted:""},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("div",{class:"multiselect__content-wrapper",onFocus:t[12]||(t[12]=(...c)=>e.activate&&e.activate(...c)),tabindex:"-1",onMousedown:t[13]||(t[13]=l.withModifiers(()=>{},["prevent"])),style:l.normalizeStyle({maxHeight:e.optimizedHeight+"px"}),ref:"list"},[l.createElementVNode("ul",{class:"multiselect__content",style:l.normalizeStyle(s.contentStyle),role:"listbox",id:"listbox-"+e.id,"aria-multiselectable":e.multiple},[l.renderSlot(e.$slots,"beforeList"),e.multiple&&e.max===e.internalValue.length?(l.openBlock(),l.createElementBlock("li",tR,[l.createElementVNode("span",nR,[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.createElementBlock(l.Fragment,{key:1},l.renderList(e.filteredOptions,(c,f)=>(l.openBlock(),l.createElementBlock("li",{class:"multiselect__element",key:f,"aria-selected":e.isSelected(c),id:e.id+"-"+f,role:c&&(c.$isLabel||c.$isDisabled)?null:"option"},[c&&(c.$isLabel||c.$isDisabled)?l.createCommentVNode("v-if",!0):(l.openBlock(),l.createElementBlock("span",{key:0,class:l.normalizeClass([e.optionHighlight(f,c),"multiselect__option"]),onClick:l.withModifiers(d=>e.select(c),["stop"]),onMouseenter:l.withModifiers(d=>e.pointerSet(f),["self"]),"data-select":c&&c.isTag?e.tagPlaceholder:s.selectLabelText,"data-selected":s.selectedLabelText,"data-deselect":s.deselectLabelText},[l.renderSlot(e.$slots,"option",{option:c,search:e.search,index:f},()=>[l.createElementVNode("span",null,l.toDisplayString(e.getOptionLabel(c)),1)])],42,iR)),c&&(c.$isLabel||c.$isDisabled)?(l.openBlock(),l.createElementBlock("span",{key:1,"data-select":e.groupSelect&&s.selectGroupLabelText,"data-deselect":e.groupSelect&&s.deselectGroupLabelText,class:l.normalizeClass([e.groupHighlight(f,c),"multiselect__option"]),onMouseenter:l.withModifiers(d=>e.groupSelect&&e.pointerSet(f),["self"]),onMousedown:l.withModifiers(d=>e.selectGroup(c),["prevent"])},[l.renderSlot(e.$slots,"option",{option:c,search:e.search,index:f},()=>[l.createElementVNode("span",null,l.toDisplayString(e.getOptionLabel(c)),1)])],42,oR)):l.createCommentVNode("v-if",!0)],8,rR))),128)):l.createCommentVNode("v-if",!0),l.withDirectives(l.createElementVNode("li",null,[l.createElementVNode("span",aR,[l.renderSlot(e.$slots,"noResult",{search:e.search},()=>[t[20]||(t[20]=l.createTextVNode("No elements found. Consider changing the search query."))])])],512),[[l.vShow,n.showNoResults&&e.filteredOptions.length===0&&e.search&&!n.loading]]),l.withDirectives(l.createElementVNode("li",null,[l.createElementVNode("span",sR,[l.renderSlot(e.$slots,"noOptions",{},()=>[t[21]||(t[21]=l.createTextVNode("List is empty."))])])],512),[[l.vShow,n.showNoOptions&&(e.options.length===0||s.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!n.loading]]),l.renderSlot(e.$slots,"afterList")],12,eR)],36),[[l.vShow,e.isOpen]])]),_:3})],42,ZI)}T0.render=lR;const cR=l.defineComponent({__name:"CapeFilterFieldEnumOneOfMultiselect",props:{filterId:{}},setup(e){const t=e,i=Yt().byId(t.filterId),o=i.field;return(s,c)=>(l.openBlock(),l.createBlock(l.unref(T0),{id:"filter-multiselect-"+l.unref(o).id,modelValue:l.unref(i).oneOfTerms,"onUpdate:modelValue":c[0]||(c[0]=f=>l.unref(i).oneOfTerms=f),"clear-on-select":!1,"close-on-select":!0,multiple:!0,options:l.unref(o).values,"preserve-search":!0,placeholder:"Select (1 or more)"},null,8,["id","modelValue","options"]))}}),uR={};function fR(e,t){const n=l.resolveComponent("cape-version");return l.openBlock(),l.createElementBlock("p",null,[t[0]||(t[0]=l.createTextVNode(" This website uses pure Javascript to provide interaction with a JSON datafile which contains the records and site configuration. It does not require any database or PHP -- all the searching is done using javascript inside the single page. This toolkit is called ")),t[1]||(t[1]=l.createElementVNode("i",null,"CAPE",-1)),t[2]||(t[2]=l.createTextVNode(". CAPE will be reused for similar projects in future. CAPE was created by the ")),t[3]||(t[3]=l.createElementVNode("a",{href:"https://ras.soton.ac.uk/"},"Research Application Support",-1)),t[4]||(t[4]=l.createTextVNode(" team at the ")),t[5]||(t[5]=l.createElementVNode("a",{href:"https://www.southampton.ac.uk/"},"University of Southampton",-1)),t[6]||(t[6]=l.createTextVNode(", UK. This site uses Cape ")),l.createVNode(n),t[7]||(t[7]=l.createTextVNode(". "))])}const dR=ji(uR,[["render",fR]]),hR={},pR={class:"border border-black p-1 fixed right-1 top-1"};function _R(e,t){return l.openBlock(),l.createElementBlock("div",pR,t[0]||(t[0]=[l.createStaticVNode('<span class="block sm:hidden">&lt;sm</span><span class="hidden sm:block md:hidden">sm</span><span class="hidden md:block lg:hidden">md</span><span class="hidden lg:block xl:hidden">lg</span><span class="hidden xl:block 2xl:hidden">xl</span><span class="hidden 2xl:block">2xl+</span>',6)]))}const mR=ji(hR,[["render",_R]]),vR="3.6.0",gR={class:"cape-plugin-version"},yR=l.defineComponent({__name:"CapeVersion",setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("span",gR,"v"+l.toDisplayString(l.unref(vR)),1))}}),SR={class:"cape-content-page"},wR=["href"],ER=["href"],TR={key:0},bR={key:0},NR=["href"],kR=l.defineComponent({__name:"CapeAboutPage",setup(e){const{metadata:t}=nn();return(n,i)=>{var p,_,v,y,g,E,w,T,b,C,M,z,G,oe,R;const o=l.resolveComponent("cape-record-count"),s=l.resolveComponent("cape-download-json-button"),c=l.resolveComponent("cape-download-csv-button"),f=l.resolveComponent("cape-software"),d=l.resolveComponent("cape-fields-table");return l.openBlock(),l.createElementBlock("div",SR,[i[8]||(i[8]=l.createElementVNode("h2",null,"About the data",-1)),l.createElementVNode("p",null,[i[0]||(i[0]=l.createTextVNode(" This dataset has been created and shared with the intention it should be reused. The dataset contains ")),l.createVNode(o),i[1]||(i[1]=l.createTextVNode(" records. The fields in the dataset are described below. "))]),l.createElementVNode("p",null,[i[2]||(i[2]=l.createTextVNode(" This data is copyright ")),l.createElementVNode("a",{href:(_=(p=l.unref(t))==null?void 0:p.copyright)==null?void 0:_.url},l.toDisplayString(((y=(v=l.unref(t))==null?void 0:v.copyright)==null?void 0:y.title)??"MISSING DATA"),9,wR),i[3]||(i[3]=l.createTextVNode(" and may be reused under the ")),l.createElementVNode("a",{href:(E=(g=l.unref(t))==null?void 0:g.license)==null?void 0:E.url},l.toDisplayString(((T=(w=l.unref(t))==null?void 0:w.license)==null?void 0:T.title)??"MISSING DATA"),9,ER),i[4]||(i[4]=l.createTextVNode(" license. "))]),(b=l.unref(t))!=null&&b.creators?(l.openBlock(),l.createElementBlock("p",TR,[i[5]||(i[5]=l.createTextVNode(" This dataset was created by ")),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(t).creators,(F,Q)=>{var A;return l.openBlock(),l.createElementBlock("span",{key:Q},[l.createElementVNode("span",null,l.toDisplayString(F.name),1),Q+1<((A=l.unref(t).creators)==null?void 0:A.length)?(l.openBlock(),l.createElementBlock("span",bR,", ")):l.createCommentVNode("",!0)])}),128)),i[6]||(i[6]=l.createTextVNode(". "))])):l.createCommentVNode("",!0),l.createElementVNode("p",null,[l.createTextVNode(' If using this data, please attribute it as "'+l.toDisplayString(((M=(C=l.unref(t))==null?void 0:C.attribution)==null?void 0:M.title)??"MISSING DATA")+'" with a link to ',1),l.createElementVNode("a",{href:(G=(z=l.unref(t))==null?void 0:z.attribution)==null?void 0:G.url},l.toDisplayString(((R=(oe=l.unref(t))==null?void 0:oe.attribution)==null?void 0:R.url)??"MISSING DATA"),9,NR),i[7]||(i[7]=l.createTextVNode(". "))]),l.createElementVNode("p",null,[l.createVNode(s,{style:{"margin-right":"1rem"}}),l.createVNode(c)]),i[9]||(i[9]=l.createElementVNode("h2",null,"About this software",-1)),l.createVNode(f),i[10]||(i[10]=l.createElementVNode("h2",null,"Schema",-1)),i[11]||(i[11]=l.createElementVNode("p",null," Field types may be text, date, integer or enum. An enum field is short for enumerated, which means a limited set of terms rather than free text. ",-1)),l.createVNode(d)])}}}),CR=l.defineComponent({__name:"CapeSummaryCard",props:{record:{}},setup(e){return(t,n)=>{const i=l.resolveComponent("cape-value"),o=l.resolveComponent("cape-record-link");return l.openBlock(),l.createBlock(o,{class:"cape-summary-card block bg-blue-100 py-2 px-4 my-1",record:t.record},{default:l.withCtx(()=>[l.createElementVNode("div",null,[l.createVNode(i,{"field-value":t.record.record_number},null,8,["field-value"]),n[0]||(n[0]=l.createTextVNode(" - ")),l.createVNode(i,{"field-value":t.record.title},null,8,["field-value"]),n[1]||(n[1]=l.createTextVNode(" - ")),l.createVNode(i,{"field-value":t.record.date},null,8,["field-value"])])]),_:1},8,["record"])}}}),PR={class:"cape-navigation"},DR={class:"cape-navigation-items"},xR={class:"cape-navigation-item"},OR=l.defineComponent({__name:"CapeNavigation",setup(e){const t=nn(),n=l.computed(()=>t.pages);return(i,o)=>{const s=l.resolveComponent("router-link"),c=l.resolveComponent("router-view");return l.openBlock(),l.createElementBlock("div",PR,[l.createElementVNode("nav",null,[l.createElementVNode("ul",DR,[l.createElementVNode("li",xR,[l.createVNode(s,{class:"cape-navigation-link",to:"/"},{default:l.withCtx(()=>o[0]||(o[0]=[l.createTextVNode("Search")])),_:1,__:[0]})]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.value,f=>(l.openBlock(),l.createElementBlock("li",{class:"cape-navigation-item",key:f.path},[l.createVNode(s,{class:"cape-navigation-link",to:f.path},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(f.label),1)]),_:2},1032,["to"])]))),128))])]),l.createElementVNode("main",null,[l.createVNode(c)])])}}}),IR={class:"cape-record-card bg-blue-100 py-2 px-4"},RR={class:"text-xl border-black border-b mb-4"},LR={class:"border-b mb-4 pb-4 border-b-black"},MR={class:"md:grid md:grid-cols-2 md:gap-4"},AR={class:"border-b mb-4 pb-4 border-b-black"},BR={class:"md:grid md:grid-cols-2 md:gap-4"},VR={class:"md:grid md:grid-cols-2 md:gap-4"},FR={class:"mb-5"},YR=l.defineComponent({__name:"CapeRecordCard",props:{record:{},previousInDataset:{},nextInDataset:{},previousInResults:{},nextInResults:{}},setup(e){return(t,n)=>{const i=l.resolveComponent("cape-previous-result"),o=l.resolveComponent("cape-next-result"),s=l.resolveComponent("cape-previous-record"),c=l.resolveComponent("cape-next-record"),f=l.resolveComponent("cape-labelled-value");return l.openBlock(),l.createElementBlock("div",IR,[l.createElementVNode("h2",RR,"RecordCard Placeholder ID: "+l.toDisplayString(t.record.record_number.value),1),l.createElementVNode("div",LR,[l.createElementVNode("div",MR,[l.createVNode(i,{record:t.record},{before:l.withCtx(()=>n[0]||(n[0]=[l.createTextVNode("← ")])),otherwise:l.withCtx(()=>n[1]||(n[1]=[l.createTextVNode("[start of results]")])),_:1},8,["record"]),l.createVNode(o,{record:t.record,class:"text-right"},{after:l.withCtx(()=>n[2]||(n[2]=[l.createTextVNode(" →")])),otherwise:l.withCtx(()=>n[3]||(n[3]=[l.createTextVNode("[end of results]")])),_:1},8,["record"])])]),l.createElementVNode("div",AR,[l.createElementVNode("div",BR,[l.createVNode(s,{record:t.record},{before:l.withCtx(()=>n[4]||(n[4]=[l.createTextVNode("← ")])),otherwise:l.withCtx(()=>n[5]||(n[5]=[l.createTextVNode("[start of dataset]")])),_:1},8,["record"]),l.createVNode(c,{record:t.record,class:"text-right"},{after:l.withCtx(()=>n[6]||(n[6]=[l.createTextVNode(" →")])),otherwise:l.withCtx(()=>n[7]||(n[7]=[l.createTextVNode("[end of dataset]")])),_:1},8,["record"])])]),l.createElementVNode("div",VR,[l.createElementVNode("ul",FR,[l.createElementVNode("li",null,[l.createVNode(f,{hideIfEmpty:!1,link:!1,"field-value":t.record.record_number},null,8,["field-value"])]),l.createElementVNode("li",null,[l.createVNode(f,{hideIfEmpty:!1,link:!1,"field-value":t.record.title},null,8,["field-value"])]),l.createElementVNode("li",null,[l.createVNode(f,{hideIfEmpty:!1,link:!1,"field-value":t.record.date},null,8,["field-value"])])]),n[8]||(n[8]=l.createElementVNode("div",null," Column 2 ",-1))])])}}}),$R={};function UR(e,t){const n=l.resolveComponent("cape-page-width-indicator"),i=l.resolveComponent("cape-non-prod-warning");return l.openBlock(),l.createElementBlock("header",null,[l.createVNode(n),t[0]||(t[0]=l.createElementVNode("h1",{class:"text-4xl"},[l.createElementVNode("a",{href:"/",id:"service-title"},"CAPE")],-1)),l.createVNode(i)])}const zR=ji($R,[["render",UR]]),HR={class:"mt-10 py-5 px-4 bg-gray-700 text-white flex items-center justify-between"},WR={class:"text-left"},ZR=["href"],GR={class:"text-right"},jR={__name:"CapeFooter",setup(e){const{metadata:t}=nn();return(n,i)=>{var s,c,f,d;const o=l.resolveComponent("cape-version");return l.openBlock(),l.createElementBlock("footer",HR,[l.createElementVNode("div",WR,[i[0]||(i[0]=l.createTextVNode(" © ")),l.createElementVNode("a",{href:(c=(s=l.unref(t))==null?void 0:s.copyright)==null?void 0:c.url},l.toDisplayString(((d=(f=l.unref(t))==null?void 0:f.copyright)==null?void 0:d.title)??"MISSING COPYRIGHT METADATA"),9,ZR)]),i[2]||(i[2]=l.createElementVNode("div",{class:"text-center"},null,-1)),l.createElementVNode("div",GR,[i[1]||(i[1]=l.createTextVNode(" Powered by Cape ")),l.createVNode(o)])])}}},qR={class:"cape-record-label"},KR=l.defineComponent({__name:"CapeRecordLabel",props:{record:{}},setup(e){return(t,n)=>{const i=l.resolveComponent("cape-value");return l.openBlock(),l.createElementBlock("span",qR,[l.createVNode(i,{"field-value":t.record.title},null,8,["field-value"]),n[0]||(n[0]=l.createTextVNode(" # ")),l.createVNode(i,{"field-value":t.record.record_number},null,8,["field-value"])])}}}),XR={class:"cape-filter-controls cape-filter-controls-top"},JR={class:"cape-advanced-search-toggle-control switch switch-sm"},QR={key:0,class:"cape-filter-controls cape-filter-controls-bottom"},eL={class:"cape-advanced-search-toggle-control switch switch-sm"},tL=l.defineComponent({__name:"CapeHomepageLayout",setup(e){const t=Yt(),n=l.computed(()=>t.showAdvanced);return(i,o)=>{const s=l.resolveComponent("cape-intro"),c=l.resolveComponent("cape-advanced-search-toggle"),f=l.resolveComponent("cape-form-reset-button"),d=l.resolveComponent("cape-filters"),p=l.resolveComponent("cape-results");return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createVNode(s),l.createElementVNode("div",XR,[l.createElementVNode("div",JR,[l.createVNode(c,{id:"cape-advanced-search-toggle-top"}),o[0]||(o[0]=l.createElementVNode("label",{for:"cape-advanced-search-toggle-top"},"Advanced Search",-1))]),l.createVNode(f)]),l.createElementVNode("div",null,[l.createVNode(d)]),n.value?(l.openBlock(),l.createElementBlock("div",QR,[l.createElementVNode("div",eL,[l.createVNode(c,{id:"cape-advanced-search-toggle-bottom"}),o[1]||(o[1]=l.createElementVNode("label",{for:"cape-advanced-search-toggle-bottom"},"Advanced Search",-1))]),l.createVNode(f)])):l.createCommentVNode("",!0),l.createElementVNode("div",null,[l.createVNode(p)])],64)}}}),nL={},rL={class:"cape-intro mb-10"};function iL(e,t){const n=l.resolveComponent("cape-record-count");return l.openBlock(),l.createElementBlock("p",rL,[t[0]||(t[0]=l.createElementVNode("strong",null,"Your intro text goes here.",-1)),t[1]||(t[1]=l.createTextVNode(" This repository contains ")),l.createVNode(n),t[2]||(t[2]=l.createTextVNode(" records. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas facilisis feugiat nunc vel interdum. Duis vehicula congue imperdiet. Vivamus sit amet lacus lectus. Proin nec placerat eros, nec eleifend sapien. Suspendisse in ante placerat, sodales arcu id, ornare odio. (component version) "))])}const oL=ji(nL,[["render",iL]]),aL=l.defineComponent({name:"CapeAboutPage",template:"#templateCapeAbout",computed:{metadata(){return nn().metadata}}}),sL={template:"#templateCapeSummaryCard",props:["record"]},lL={template:"#templateCapeNavigation",computed:{...Vh(nn,["pages"])}},cL={template:"#templateCapeRecordCard",props:["record","previousInDataset","nextInDataset","previousInResults","nextInResults"]},uL={template:"#templateCapeHeader"},fL={template:"#templateCapeFooter"},dL={template:"#templateCapeRecordLabel",props:["record"]},hL={template:"#templateCapeHomepageLayout",computed:{...Vh(Yt,["showAdvanced"]),...Vh(mn,{hasMatches:e=>e.totalCount>0})}},b0={install:function(e,t){e.use(Nk());const n=this.makeComponentMap(t);this.registerComponents(e,n),nn().setOptions(t),this.registerRoutes(e,t.pages,$h);const o=async s=>{const c=await Ep.getPageTitle(s,t);c&&(document.title=c)};zl.add({priority:w0.High,action:o}),$h.afterEach(async(s,c)=>{Zi().onLoaded(async()=>{await zl.execute(s,c)})}),e.use($h)},registerRoutes:function(e,t,n){n.addRoute({name:"root",path:"/",component:e.component("CapeHomePage")}),n.addRoute({name:"record",path:"/record/:id",component:e.component("CapeRecordPage")}),t!==void 0&&l.toRaw(t).forEach(i=>{const o={path:i.path,component:e.component(i.component)};i.title&&(o.meta={title:i.title}),n.addRoute(o)})},registerComponents:function(e,t){Object.keys(t).forEach(n=>{e.component(n,t[n])})},makeComponentMap(e){const t=this.builtInComponentsMap();if(e.useInlineTemplate&&(t.CapeAboutPage=aL,t.CapeFooter=fL,t.CapeHeader=uL,t.CapeHomepageLayout=hL,t.CapeNavigation=lL,t.CapeRecordCard=cL,t.CapeRecordLabel=dL,t.CapeSummaryCard=sL),e.additionalComponents!==void 0)for(const[n,i]of Object.entries(e.additionalComponents))t[n]=i;return t},builtInComponentsMap(){return{CapeFilterFieldDate:kO,CapeFilterFieldEnum:uO,CapeFilterFieldEnumIsRadio:RI,CapeFilterFieldEnumIsSelect:AI,CapeFilterFieldEnumOneOfCheckbox:YI,CapeFilterFieldEnumOneOfMultiselect:cR,CapeFilterFieldInteger:gO,CapeFilterFieldText:W1,CapeFilterFreeText:K1,CapeAboutPage:kR,CapeFooter:jR,CapeHeader:zR,CapeHomepageLayout:tL,CapeIntro:oL,CapeNavigation:OR,CapeRecordCard:YR,CapeRecordLabel:KR,CapeSummaryCard:CR,CapeAdvancedSearchToggle:aC,CapeFilters:lC,CapeFormResetButton:cC,CapeResults:DC,CapeResultsControls:OO,CapeGoTopResults:IO,CapeExternalLinkValue:LO,CapeResultsCount:kI,CapeResultsInfo:bI,CapeShowAllResultsToggle:yI,CapeSortOrder:oO,CapeDownloadCsvButton:VO,CapeDownloadJsonButton:UO,CapeFieldsTable:WO,CapeFixedNumericValue:gI,CapeLabelledContent:_I,CapeLabelledValue:AC,CapeLinkValue:mI,CapeNextRecord:uI,CapeNextResult:tI,CapePercentageValue:vI,CapePreviousRecord:sI,CapePreviousResult:iI,CapeRecordCount:oC,CapeRecordLink:GO,CapeRecordMap:JO,CapeSingleValue:V1,CapeSoftware:dR,CapeValue:MC,CapeVersion:yR,CapeHomePage:fC,CapeLoadError:pC,CapeLoading:gC,CapeNonProdWarning:TC,CapePageWidthIndicator:mR,CapeRecordPage:kC,CapeRoot:rC}}},pL={};function _L(e,t){const n=l.resolveComponent("CapeHeader"),i=l.resolveComponent("CapeRoot"),o=l.resolveComponent("CapeLoading"),s=l.resolveComponent("CapeFooter");return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createVNode(n),(l.openBlock(),l.createBlock(l.Suspense,null,{default:l.withCtx(()=>[l.createVNode(i)]),fallback:l.withCtx(()=>[l.createVNode(o)]),_:1})),l.createVNode(s)],64)}const mL=ji(pL,[["render",_L]]),vL=e=>{const t=l.createApp(mL);return t.use(b0,e),t},Li=class Li{static register(t){Li.loggers.push(t)}static clear(){Li.loggers=[]}static debug(t,n){Li.loggers.forEach(i=>i.debug(t,n))}static info(t,n){Li.loggers.forEach(i=>i.info(t,n))}static warn(t,n){Li.loggers.forEach(i=>i.warn(t,n))}static error(t,n){Li.loggers.forEach(i=>i.error(t,n))}};Ke(Li,"loggers",[]);let Hl=Li;var Dn=(e=>(e[e.Debug=3]="Debug",e[e.Info=2]="Info",e[e.Warn=1]="Warn",e[e.Error=0]="Error",e))(Dn||{});class gL{constructor(t){this.loggingLevel=t}debug(t,n){this.loggingLevel>=Dn.Debug&&console.debug(t,n??"")}info(t,n){this.loggingLevel>=Dn.Info&&console.info(t,n??"")}warn(t,n){this.loggingLevel>=Dn.Warn&&console.warn(t,n??"")}error(t,n){this.loggingLevel>=Dn.Error&&console.error(t,n??"")}}const yL={install:function(e,t){const n=new gL(t.loggingLevel);Hl.register(n)}};class SL{constructor(t,n){this.loggingLevel=t,this.appInsights=n}debug(t,n){this.loggingLevel>=Dn.Debug&&this.appInsights.trackEvent({name:t,properties:{data:n,severity:Dn.Debug}})}info(t,n){this.loggingLevel>=Dn.Info&&this.appInsights.trackEvent({name:t,properties:{data:n,severity:Dn.Info}})}warn(t,n){this.loggingLevel>=Dn.Warn&&this.appInsights.trackEvent({name:t,properties:{data:n,severity:Dn.Warn}})}error(t,n){this.loggingLevel>=Dn.Error&&this.appInsights.trackEvent({name:t,properties:{data:n,severity:Dn.Error}})}}/*! https://github.com/nevware21/ts-utils v0.12.4 */function xn(e,t){return e||t}function xt(e,t){return e[t]}var vn=void 0,qt=null,Np="",ef="function",Wl="object",_i="prototype",tf="__proto__",Yo="undefined",nf="constructor",kp="Symbol",fs="length",rf="name",rn="call",Zl="toString",Cp="getOwnPropertyDescriptor",gn=xn(Object),Pp=xt(gn,_i),N0=xn(String),$o=xt(N0,_i),Gl=xn(Math),k0=xn(Array),of=xt(k0,_i),mi=xt(of,"slice"),C0="_polyfill",P0="__nw21$polytype__";function Ot(e,t){try{return{v:e.apply(this,t)}}catch(n){return{e:n}}}function wL(e,t,n){var i=Ot(e,n);return i.e?t:i.v}var Dp;function af(e){return function(t){return typeof t===e}}function D0(e){var t="[object "+e+"]";return function(n){return!!(n&&EL(n)===t)}}function EL(e){return Pp[Zl].call(e)}function It(e){return typeof e===Yo||e===Yo}function TL(e){return e===vn}function ce(e){return e===qt||It(e)}function xp(e){return e===qt||e===vn}function bL(e){return!!e||e!==vn}function NL(e){return!Dp&&(Dp=["string","number","boolean",Yo,"symbol","bigint"]),e!==Wl&&Dp.indexOf(e)!==-1}var Re=af("string"),Le=af(ef);function On(e){return!e&&ce(e)?!1:!!e&&typeof e===Wl}var $e=xt(k0,"isArray"),kL=D0("Date"),jl=af("number"),x0=af("boolean"),Op=D0("Error");function Ji(e){return!!(e&&e.then&&Le(e.then))}function sf(e){return!(!e||wL(function(){return!(e&&0+e)},!e))}function Ip(){}function CL(){return!1}var yn=xn(N0),PL="[object Error]";function Te(e,t){var n=Np,i=Pp[Zl][rn](e);i===PL&&(e={stack:yn(e.stack),message:yn(e.message),name:yn(e.name)});try{n=JSON.stringify(e,qt,t?typeof t=="number"?t:4:vn),n=(n?n.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: "):qt)||yn(e)}catch(o){n=" - "+Te(o,t)}return i+": "+n}function Bn(e){throw new Error(e)}function Ir(e){throw new TypeError(e)}function lf(e){xp(e)&&Ir("Cannot convert undefined or null to object")}function DL(e){Re(e)||Ir("'"+Te(e)+"' is not a string")}function qn(e,t){return!!e&&Pp.hasOwnProperty[rn](e,t)}var xL=xn(xt(gn,Cp),Ip),Qi=xn(xt(gn,"hasOwn"),OL);function OL(e,t){return lf(e),qn(e,t)||!!xL(e,t)}function Xe(e,t,n){if(e&&(On(e)||Le(e))){for(var i in e)if(Qi(e,i)&&t[rn](e,i,e[i])===-1)break}}function Se(e,t,n){if(e)for(var i=e[fs]>>>0,o=0;o<i&&!(o in e&&t[rn](e,e[o],o,e)===-1);o++);}var Uo=cf;function cf(e,t,n){var i=t?t[e]:qt;return function(o){var s=(o?o[e]:qt)||i;if(s||n){var c=arguments;return(s||n).apply(o,s?mi[rn](c,1):c)}Ir('"'+yn(e)+'" not defined for '+Te(o))}}function IL(e){return function(t){return t[e]}}var RL=xn(xt(gn,Cp),Ip),uf={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"};function LL(e){var t={};if(t[uf.c]=!0,t[uf.e]=!0,e.l){t.get=function(){return e.l.v};var n=RL(e.l,"v");n&&n.set&&(t.set=function(i){e.l.v=i})}return Xe(e,function(i,o){t[uf[i]]=TL(o)?t[uf[i]]:o}),t}var vi=xt(gn,"defineProperty"),ML=xt(gn,"defineProperties");function tt(e,t,n){return vi(e,t,LL(n))}function O0(e,t,n,i,o){var s={};return Xe(e,function(c,f){ff(s,c,t?f:c),ff(s,f,c)}),i?i(s):s}function ff(e,t,n,i){vi(e,t,{value:n,enumerable:!0,writable:!1})}var AL=xn(xt(gn,"isFrozen"),CL),I0=xt(gn,"freeze");function BL(e){return e}function VL(e){return lf(e),e[tf]||qt}var Rp=xt(gn,"assign"),gi=xt(gn,"keys");function R0(e,t){if(($e(e)||On(e)||Le(e))&&!AL(e)){for(var n=0;n<t.length;n++)if(t[n]===e)return e;t.push(e),Xe(e,function(i,o){R0(o,t)}),pr(e)}return e}function ql(e){return I0?R0(e,[]):e}var pr=xn(I0,BL),Lp=xn(xt(gn,"getPrototypeOf"),VL);function FL(e){return O0(e,1,0,pr)}function YL(e){return O0(e,0,0,pr)}function $L(e){var t={};return Xe(e,function(n,i){ff(t,n,i[1]),ff(t,i[0],i[1])}),pr(t)}function UL(e){return $L(e)}var L0=YL({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}),M0="__tsUtils$gblCfg",Mp;function A0(){var e;return typeof globalThis!==Yo&&(e=globalThis),!e&&typeof self!==Yo&&(e=self),!e&&typeof window!==Yo&&(e=window),!e&&typeof global!==Yo&&(e=global),e}function df(){if(!Mp){var e=Ot(A0).v||{};Mp=e[M0]=e[M0]||{}}return Mp}var B0=xt(Gl,"min"),Kl=xt(Gl,"max"),V0=Uo("slice",$o),Rr=Uo("substring",$o),eo=cf("substr",$o,zL);function zL(e,t,n){return lf(e),n<0?Np:(t=t||0,t<0&&(t=Kl(t+e[fs],0)),It(n)?V0(e,t):V0(e,t,t+n))}function Ap(e,t){return Rr(e,0,t)}function HL(e,t){return e&&(Ot(function(){e[C0]=!0,e[P0]=t}),Ot(tt,[e,C0,{v:!0,w:!1,e:!1}]),Ot(tt,[e,P0,{v:t,w:!1,e:!1}])),e}var yi=xn(xt(gn,"create"),WL);function WL(e,t){var n=null;function i(){}if(xp(e))n={};else{var o=typeof e;o!==Wl&&o!==ef&&Ir("Prototype must be an Object or function: "+Te(e)),i[_i]=e,Ot(function(){i[tf]=e}),n=new i}return t&&Ot(ML,[n,t]),n}function _r(){return(Date.now||ZL)()}function ZL(){return new Date().getTime()}function zo(e,t,n){return e.apply(t,n)}var $t;function to(){$t=df()}function F0(e,t){var n={};return!$t&&to(),n.b=$t.lzy,vi(n,"v",{configurable:!0,get:function(){var i=zo(e,null,t);return $t.lzy||vi(n,"v",{value:i}),n.b=$t.lzy,i}}),n}var GL=xt(Gl,"random"),jL=F0(function(){for(var e=_r().toString(36).slice(2);e.length<16;)e+=GL().toString(36).slice(2);return e=e.substring(0,16),e}),Y0="_urid",qL="$nw21sym",Bp,KL=0;function XL(){if(!Bp){var e=df();Bp=e.gblSym=e.gblSym||{k:{},s:{}}}return Bp}var hf;function Vp(e){var t="_"+KL+++"_"+jL.v,n=kp+"("+e+")";function i(s,c){tt(o,s,{v:c,e:!1,w:!1})}var o=yi(null);return i("description",yn(e)),i(Zl,function(){return n+qL+t}),i("valueOf",function(){return o}),i("v",n),i("_uid",t),HL(o,"symbol")}function JL(e){var t=XL();if(!Qi(t.k,e)){var n=Vp(e),i=gi(t.s).length;n[Y0]=function(){return i+"_"+n[Zl]()},t.k[e]=n,t.s[n[Y0]()]=yn(e)}return t.k[e]}function QL(e){!hf&&(hf={});var t,n=L0[e];return n&&(t=hf[n]=hf[n]||Vp(kp+"."+n)),t}function Kn(e){return vi({toJSON:function(){return e}},"v",{value:e})}var $0="window",Xl;function ds(e,t){var n;return function(){return!$t&&to(),(!n||$t.lzy)&&(n=Kn(Ot(e,t).v)),n.v}}function Xn(e){return!$t&&to(),(!Xl||e===!1||$t.lzy)&&(Xl=Kn(Ot(A0).v||qt)),Xl.v}function Ct(e,t){var n;if(!Xl||t===!1?n=Xn(t):n=Xl.v,n&&n[e])return n[e];if(e===$0)try{return window}catch{}return qt}function U0(){return!!on()}var on=ds(Ct,["document"]);function pf(){return!!Vn()}var Vn=ds(Ct,[$0]);function eM(){return!!Lr()}var Lr=ds(Ct,["navigator"]);function tM(){return!!z0()}var z0=ds(Ct,["history"]),nM=ds(function(){return!!Ot(function(){return process&&(process.versions||{}).node}).v}),H0=ds(function(){return!!Ot(function(){return self&&self instanceof WorkerGlobalScope}).v}),hs,Fp;function _f(){return hs=Kn(Ot(Ct,[kp]).v),hs}function rM(e){var t=($t.lzy?0:hs)||_f();return t.v?t.v[e]:vn}function iM(){return!!oM()}function oM(){return!$t&&to(),(($t.lzy?0:hs)||_f()).v}function Yp(e,t){var n=L0[e];!$t&&to();var i=($t.lzy?0:hs)||_f();return i.v?i.v[n||e]:QL(e)}function Jl(e,t){!$t&&to();var n=($t.lzy?0:hs)||_f();return n.v?n.v(e):Vp(e)}function $p(e){return!$t&&to(),Fp=($t.lzy?0:Fp)||Kn(Ot(rM,["for"]).v),(Fp.v||JL)(e)}function Up(e){return!!e&&Le(e.next)}function W0(e){return!xp(e)&&Le(e[Yp(3)])}var mf;function zp(e,t,n){if(e&&(Up(e)||(!mf&&(mf=Kn(Yp(3))),e=e[mf.v]?e[mf.v]():qt),Up(e))){var i=vn,o=vn;try{for(var s=0;!(o=e.next()).done&&t[rn](n||e,o.value,s,e)!==-1;)s++}catch(c){i={e:c},e.throw&&(o=qt,e.throw(i))}finally{try{o&&!o.done&&e.return&&e.return(o)}finally{if(i)throw i.e}}}}function ps(e,t){return!It(t)&&e&&($e(t)?zo(e.push,e,t):Up(t)||W0(t)?zp(t,function(n){e.push(n)}):e.push(t)),e}var dn=Uo("indexOf",of),Ql=Uo("map",of);function vf(e,t,n){return((e?e.slice:qt)||mi).apply(e,mi[rn](arguments,1))}var aM=Uo("reduce",of),Hp,Z0=xn(xt(gn,"setPrototypeOf"),sM);function sM(e,t){var n;return!Hp&&(Hp=Kn((n={},n[tf]=[],n instanceof Array))),Hp.v?e[tf]=t:Xe(t,function(i,o){return e[i]=o}),e}function lM(e,t,n){Ot(tt,[t,rf,{v:e,c:!0,e:!1}]),t=Z0(t,n);function i(){this[nf]=t,Ot(tt,[this,rf,{v:e,c:!0,e:!1}])}return t[_i]=n===qt?yi(n):(i[_i]=n[_i],new i),t}function G0(e,t){t&&(e[rf]=t)}function j0(e,t,n){var i=Error,o=i[_i][rf],s=Error.captureStackTrace;return lM(e,function(){var c=this,f=arguments;try{Ot(G0,[i,e]);var d=zo(i,c,mi[rn](f))||c;if(d!==c){var p=Lp(c);p!==Lp(d)&&Z0(d,p)}return s&&s(d,c[nf]),t&&t(d,f),d}finally{Ot(G0,[i,o])}},i)}var Wp;function cM(e){throw Wp||(Wp=j0("UnsupportedError")),new Wp(e)}function uM(e){return function(n){return lf(n),n&&n.replace&&(n=n.replace(e,Np)),n}}var fM=uM(/^\s+|(?=\s)\s+$/g),yt=cf("trim",$o,fM),Fn=xt(Gl,"floor"),Zp,Gp,jp;function Sn(e){if(!e||typeof e!==Wl)return!1;jp||(jp=pf()?Vn():!0);var t=!1;if(e!==jp){Gp||(Zp=Function[_i][Zl],Gp=Zp[rn](gn));try{var n=Lp(e);t=!n,t||(qn(n,nf)&&(n=n[nf]),t=!!(n&&typeof n===ef&&Zp[rn](n)===Gp))}catch{}}return t}function dM(e){return e.value&&X0(e),!0}var q0=[mM,X0,gM,vM];function hM(e,t,n,i){var o;return Se(e,function(s){if(s.k===t)return o=s,-1}),o||(o={k:t,v:t},e.push(o),i(o)),o.v}function qp(e,t,n,i){var o=n.handler,s=n.path?i?n.path.concat(i):n.path:[],c={handler:n.handler,src:n.src,path:s},f=typeof t,d=!1,p=t===qt;p||(t&&f===Wl?d=Sn(t):p=NL(f));var _={type:f,isPrim:p,isPlain:d,value:t,result:t,path:s,origin:n.src,copy:function(v,y){return qp(e,v,y?c:n,y)},copyTo:function(v,y){return K0(e,v,y,c)}};return _.isPrim?o&&o[rn](n,_)?_.result:t:hM(e,t,s,function(v){tt(_,"result",{g:function(){return v.v},s:function(E){v.v=E}});for(var y=0,g=o;!(g||(y<q0.length?q0[y++]:dM))[rn](n,_);)g=qt})}function K0(e,t,n,i){if(!ce(n))for(var o in n)t[o]=qp(e,n[o],i,o);return t}function pM(e,t,n){var i={handler:n,src:t,path:[]};return K0([],e,t,i)}function _M(e,t){var n={handler:t,src:e};return qp([],e,n)}function mM(e){var t=e.value;if($e(t)){var n=e.result=[];return n.length=t.length,e.copyTo(n,t),!0}return!1}function vM(e){var t=e.value;return kL(t)?(e.result=new Date(t.getTime()),!0):!1}function gM(e){return e.type===ef}function X0(e){var t=e.value;if(t&&e.isPlain){var n=e.result={};return e.copyTo(n,t),!0}return!1}function J0(e,t){return Se(t,function(n){pM(e,n)}),e}function Q0(e,t,n,i,o,s,c){return J0(_M(e)||{},mi[rn](arguments))}function yM(e,t,n,i,o,s,c){return J0(e||{},mi[rn](arguments))}var eS=Uo("split",$o);function tS(e,t,n){if(e&&t){var i=eS(t,"."),o=i.pop();Se(i,function(s){ce(e[s])&&(e[s]={}),e=e[s]}),e[o]=n}}var SM=IL(fs),Kp;function Si(){return!$t&&to(),(!Kp||$t.lzy)&&(Kp=Kn(Ot(Ct,["performance"]).v)),Kp.v}var nS=xt(Gl,"round"),wM=xn(xt(gn,Cp),Ip),rS=cf("endsWith",$o,EM);function EM(e,t,n){DL(e);var i=Re(t)?t:yn(t),o=!It(n)&&n<e[fs]?n:e[fs];return Rr(e,o-i[fs],o)===i}var wn=Uo("indexOf",$o),Xp="ref",Jp="unref",Qp="hasRef",TM="enabled";function bM(e,t,n){var i=!0,o=e?t(qt):qt,s;function c(){return i=!1,o&&o[Jp]&&o[Jp](),s}function f(){o&&n(o),o=qt}function d(){return o=t(o),i||c(),s}function p(_){!_&&o&&f(),_&&!o&&d()}return s={cancel:f,refresh:d},s[Qp]=function(){return o&&o[Qp]?o[Qp]():i},s[Xp]=function(){return i=!0,o&&o[Xp]&&o[Xp](),s},s[Jp]=c,s=vi(s,TM,{get:function(){return!!o},set:p}),{h:s,dn:function(){o=qt}}}var NM,kM;function CM(e){var t=Le(e)?e:NM;if(!t){var n=df().tmOut||[];$e(n)&&n.length>0&&Le(n[0])&&(t=n[0])}return t||setTimeout}function PM(e){var t=Le(e)?e:kM;if(!t){var n=df().tmOut||[];$e(n)&&n.length>1&&Le(n[1])&&(t=n[1])}return t||clearTimeout}function iS(e,t,n){var i=$e(t),o=i?t.length:0,s=CM(o>0?t[0]:i?vn:t),c=PM(o>1?t[1]:vn),f=n[0];n[0]=function(){d.dn(),zo(f,vn,mi[rn](arguments))};var d=bM(e,function(p){if(p){if(p.refresh)return p.refresh(),p;zo(c,vn,[p])}return zo(s,vn,n)},function(p){zo(c,vn,[p])});return d.h}function Jn(e,t){return iS(!0,vn,mi[rn](arguments))}function DM(e,t){return iS(!1,vn,mi[rn](arguments))}var gf,yf="constructor",wi="prototype",Sf="function",wf="_dynInstFuncs",e_="_isDynProxy",_s="_dynClass",xM="_dynCls$",t_="_dynInstChk",ec=t_,oS="_dfOpts",aS="_unknown_",n_="__proto__",Ef="_dyn"+n_,sS="__dynProto$Gbl",r_="_dynInstProto",Tf="useBaseInst",i_="setInstFuncs",o_=Object,tc=o_.getPrototypeOf,lS=o_.getOwnPropertyNames,cS=Xn(),a_=cS[sS]||(cS[sS]={o:(gf={},gf[i_]=!0,gf[Tf]=!0,gf),n:1e3});function bf(e){return e&&(e===o_[wi]||e===Array[wi])}function s_(e){return bf(e)||e===Function[wi]}function Ho(e){var t;if(e){if(tc)return tc(e);var n=e[n_]||e[wi]||(e[yf]?e[yf][wi]:null);t=e[Ef]||n,qn(e,Ef)||(delete e[r_],t=e[Ef]=e[r_]||e[Ef],e[r_]=n)}return t}function Nf(e,t){var n=[];if(lS)n=lS(e);else for(var i in e)typeof i=="string"&&qn(e,i)&&n.push(i);if(n&&n.length>0)for(var o=0;o<n.length;o++)t(n[o])}function l_(e,t,n){return t!==yf&&typeof e[t]===Sf&&(n||qn(e,t))&&t!==n_&&t!==wi}function kf(e){Ir("DynamicProto: "+e)}function OM(e){var t=yi(null);return Nf(e,function(n){!t[n]&&l_(e,n,!1)&&(t[n]=e[n])}),t}function c_(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function IM(e,t,n,i){function o(d,p,_){var v=p[_];if(v[e_]&&i){var y=d[wf]||{};y[ec]!==!1&&(v=(y[p[_s]]||{})[_]||v)}return function(){return v.apply(d,arguments)}}var s=yi(null);Nf(n,function(d){s[d]=o(t,n,d)});for(var c=Ho(e),f=[];c&&!s_(c)&&!c_(f,c);)Nf(c,function(d){!s[d]&&l_(c,d,!tc)&&(s[d]=o(t,c,d))}),f.push(c),c=Ho(c);return s}function RM(e,t,n,i){var o=null;if(e&&qn(n,_s)){var s=e[wf]||yi(null);if(o=(s[n[_s]]||yi(null))[t],o||kf("Missing ["+t+"] "+Sf),!o[t_]&&s[ec]!==!1){for(var c=!qn(e,t),f=Ho(e),d=[];c&&f&&!s_(f)&&!c_(d,f);){var p=f[t];if(p){c=p===i;break}d.push(f),f=Ho(f)}try{c&&(e[t]=o),o[t_]=1}catch{s[ec]=!1}}}return o}function LM(e,t,n){var i=t[e];return i===n&&(i=Ho(t)[e]),typeof i!==Sf&&kf("["+e+"] is not a "+Sf),i}function MM(e,t,n,i,o){function s(d,p){var _=function(){var v=RM(this,p,d,_)||LM(p,d,_);return v.apply(this,arguments)};return _[e_]=1,_}if(!bf(e)){var c=n[wf]=n[wf]||yi(null);if(!bf(c)){var f=c[t]=c[t]||yi(null);c[ec]!==!1&&(c[ec]=!!o),bf(f)||Nf(n,function(d){l_(n,d,!1)&&n[d]!==i[d]&&(f[d]=n[d],delete n[d],(!qn(e,d)||e[d]&&!e[d][e_])&&(e[d]=s(e,d)))})}}}function AM(e,t){if(tc){for(var n=[],i=Ho(t);i&&!s_(i)&&!c_(n,i);){if(i===e)return!0;n.push(i),i=Ho(i)}return!1}return!0}function u_(e,t){return qn(e,wi)?e.name||t||aS:((e||{})[yf]||{}).name||t||aS}function St(e,t,n,i){qn(e,wi)||kf("theClass is an invalid class definition.");var o=e[wi];AM(o,t)||kf("["+u_(e)+"] not in hierarchy of ["+u_(t)+"]");var s=null;qn(o,_s)?s=o[_s]:(s=xM+u_(e,"_")+"$"+a_.n,a_.n++,o[_s]=s);var c=St[oS],f=!!c[Tf];f&&i&&i[Tf]!==void 0&&(f=!!i[Tf]);var d=OM(t),p=IM(o,t,d,f);n(t,p);var _=!!tc&&!!c[i_];_&&i&&(_=!!i[i_]),MM(o,s,t,d,_!==!1)}St[oS]=a_.o;var uS="function",fS="object",f_="undefined",Mr="prototype",d_=Object,BM=d_[Mr];(Xn()||{}).Symbol,(Xn()||{}).Reflect;var dS="hasOwnProperty",VM=function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)BM[dS].call(t,o)&&(e[o]=t[o])}return e},En=Rp||VM,h_=function(e,t){return h_=d_.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i[dS](o)&&(n[o]=i[o])},h_(e,t)};function Ei(e,t){typeof t!==uS&&t!==null&&Ir("Class extends value "+String(t)+" is not a constructor or null"),h_(e,t);function n(){this.constructor=e}e[Mr]=t===null?yi(t):(n[Mr]=t[Mr],new n)}function hS(e,t){for(var n=0,i=t.length,o=e.length;n<i;n++,o++)e[o]=t[n];return e}var pS=FL,FM=UL,no=pS({NONE:0,PENDING:3,INACTIVE:1,ACTIVE:2}),ms="toLowerCase",Ve="length",Cf="warnToConsole",nc="throwInternal",Wo="watch",Zo="apply",ot="push",vs="splice",Ut="logger",Go="cancel",rc="initialize",ro="identifier",Pf="removeNotificationListener",Df="addNotificationListener",Ar="isInitialized",xf="getNotifyMgr",ic="getPlugin",jo="name",Tn="processNext",_S="getProcessTelContext",qo="value",gs="enabled",mS="stopPollingInternalLogs",Ko="unload",Of="onComplete",p_="version",vS="loggingLevelConsole",Xo="createNew",Ti="teardown",If="messageId",Jo="message",bi="diagLog",Rf="_doTeardown",oc="update",Br="getNext",ac="setNextPlugin",__="userAgent",ys="split",Qo="replace",io="type",gS="evtName",Ni="status",YM="indexOf",yS="getAllResponseHeaders",m_="isChildEvt",mr="data",Ss="getCtx",Vr="setCtx",SS="itemsReceived",Lf="headers",sc="urlString",ws="timeout",v_="traceFlags",g_="getAttribute",y_;function $M(e,t){y_||(y_=j0("AggregationError",function(i,o){o[Ve]>1&&(i.errors=o[1])}));var n=e;throw Se(t,function(i,o){n+=`
56
+ */var qO=$l.exports,S0;function KO(){return S0||(S0=1,function(e,t){(function(n,i){i(t)})(qO,function(n){var i="1.9.4";function o(r){var a,u,h,m;for(u=1,h=arguments.length;u<h;u++){m=arguments[u];for(a in m)r[a]=m[a]}return r}var s=Object.create||function(){function r(){}return function(a){return r.prototype=a,new r}}();function c(r,a){var u=Array.prototype.slice;if(r.bind)return r.bind.apply(r,u.call(arguments,1));var h=u.call(arguments,2);return function(){return r.apply(a,h.length?h.concat(u.call(arguments)):arguments)}}var f=0;function d(r){return"_leaflet_id"in r||(r._leaflet_id=++f),r._leaflet_id}function p(r,a,u){var h,m,S,D;return D=function(){h=!1,m&&(S.apply(u,m),m=!1)},S=function(){h?m=arguments:(r.apply(u,arguments),setTimeout(D,a),h=!0)},S}function _(r,a,u){var h=a[1],m=a[0],S=h-m;return r===h&&u?r:((r-m)%S+S)%S+m}function v(){return!1}function y(r,a){if(a===!1)return r;var u=Math.pow(10,a===void 0?6:a);return Math.round(r*u)/u}function g(r){return r.trim?r.trim():r.replace(/^\s+|\s+$/g,"")}function E(r){return g(r).split(/\s+/)}function w(r,a){Object.prototype.hasOwnProperty.call(r,"options")||(r.options=r.options?s(r.options):{});for(var u in a)r.options[u]=a[u];return r.options}function T(r,a,u){var h=[];for(var m in r)h.push(encodeURIComponent(u?m.toUpperCase():m)+"="+encodeURIComponent(r[m]));return(!a||a.indexOf("?")===-1?"?":"&")+h.join("&")}var b=/\{ *([\w_ -]+) *\}/g;function C(r,a){return r.replace(b,function(u,h){var m=a[h];if(m===void 0)throw new Error("No value provided for variable "+u);return typeof m=="function"&&(m=m(a)),m})}var M=Array.isArray||function(r){return Object.prototype.toString.call(r)==="[object Array]"};function z(r,a){for(var u=0;u<r.length;u++)if(r[u]===a)return u;return-1}var G="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function oe(r){return window["webkit"+r]||window["moz"+r]||window["ms"+r]}var R=0;function F(r){var a=+new Date,u=Math.max(0,16-(a-R));return R=a+u,window.setTimeout(r,u)}var Q=window.requestAnimationFrame||oe("RequestAnimationFrame")||F,A=window.cancelAnimationFrame||oe("CancelAnimationFrame")||oe("CancelRequestAnimationFrame")||function(r){window.clearTimeout(r)};function B(r,a,u){if(u&&Q===F)r.call(a);else return Q.call(window,c(r,a))}function ae(r){r&&A.call(window,r)}var he={__proto__:null,extend:o,create:s,bind:c,get lastId(){return f},stamp:d,throttle:p,wrapNum:_,falseFn:v,formatNum:y,trim:g,splitWords:E,setOptions:w,getParamString:T,template:C,isArray:M,indexOf:z,emptyImageUrl:G,requestFn:Q,cancelFn:A,requestAnimFrame:B,cancelAnimFrame:ae};function P(){}P.extend=function(r){var a=function(){w(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},u=a.__super__=this.prototype,h=s(u);h.constructor=a,a.prototype=h;for(var m in this)Object.prototype.hasOwnProperty.call(this,m)&&m!=="prototype"&&m!=="__super__"&&(a[m]=this[m]);return r.statics&&o(a,r.statics),r.includes&&(V(r.includes),o.apply(null,[h].concat(r.includes))),o(h,r),delete h.statics,delete h.includes,h.options&&(h.options=u.options?s(u.options):{},o(h.options,r.options)),h._initHooks=[],h.callInitHooks=function(){if(!this._initHooksCalled){u.callInitHooks&&u.callInitHooks.call(this),this._initHooksCalled=!0;for(var S=0,D=h._initHooks.length;S<D;S++)h._initHooks[S].call(this)}},a},P.include=function(r){var a=this.prototype.options;return o(this.prototype,r),r.options&&(this.prototype.options=a,this.mergeOptions(r.options)),this},P.mergeOptions=function(r){return o(this.prototype.options,r),this},P.addInitHook=function(r){var a=Array.prototype.slice.call(arguments,1),u=typeof r=="function"?r:function(){this[r].apply(this,a)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(u),this};function V(r){if(!(typeof L>"u"||!L||!L.Mixin)){r=M(r)?r:[r];for(var a=0;a<r.length;a++)r[a]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var K={on:function(r,a,u){if(typeof r=="object")for(var h in r)this._on(h,r[h],a);else{r=E(r);for(var m=0,S=r.length;m<S;m++)this._on(r[m],a,u)}return this},off:function(r,a,u){if(!arguments.length)delete this._events;else if(typeof r=="object")for(var h in r)this._off(h,r[h],a);else{r=E(r);for(var m=arguments.length===1,S=0,D=r.length;S<D;S++)m?this._off(r[S]):this._off(r[S],a,u)}return this},_on:function(r,a,u,h){if(typeof a!="function"){console.warn("wrong listener type: "+typeof a);return}if(this._listens(r,a,u)===!1){u===this&&(u=void 0);var m={fn:a,ctx:u};h&&(m.once=!0),this._events=this._events||{},this._events[r]=this._events[r]||[],this._events[r].push(m)}},_off:function(r,a,u){var h,m,S;if(this._events&&(h=this._events[r],!!h)){if(arguments.length===1){if(this._firingCount)for(m=0,S=h.length;m<S;m++)h[m].fn=v;delete this._events[r];return}if(typeof a!="function"){console.warn("wrong listener type: "+typeof a);return}var D=this._listens(r,a,u);if(D!==!1){var $=h[D];this._firingCount&&($.fn=v,this._events[r]=h=h.slice()),h.splice(D,1)}}},fire:function(r,a,u){if(!this.listens(r,u))return this;var h=o({},a,{type:r,target:this,sourceTarget:a&&a.sourceTarget||this});if(this._events){var m=this._events[r];if(m){this._firingCount=this._firingCount+1||1;for(var S=0,D=m.length;S<D;S++){var $=m[S],Z=$.fn;$.once&&this.off(r,Z,$.ctx),Z.call($.ctx||this,h)}this._firingCount--}}return u&&this._propagateEvent(h),this},listens:function(r,a,u,h){typeof r!="string"&&console.warn('"string" type argument expected');var m=a;typeof a!="function"&&(h=!!a,m=void 0,u=void 0);var S=this._events&&this._events[r];if(S&&S.length&&this._listens(r,m,u)!==!1)return!0;if(h){for(var D in this._eventParents)if(this._eventParents[D].listens(r,a,u,h))return!0}return!1},_listens:function(r,a,u){if(!this._events)return!1;var h=this._events[r]||[];if(!a)return!!h.length;u===this&&(u=void 0);for(var m=0,S=h.length;m<S;m++)if(h[m].fn===a&&h[m].ctx===u)return m;return!1},once:function(r,a,u){if(typeof r=="object")for(var h in r)this._on(h,r[h],a,!0);else{r=E(r);for(var m=0,S=r.length;m<S;m++)this._on(r[m],a,u,!0)}return this},addEventParent:function(r){return this._eventParents=this._eventParents||{},this._eventParents[d(r)]=r,this},removeEventParent:function(r){return this._eventParents&&delete this._eventParents[d(r)],this},_propagateEvent:function(r){for(var a in this._eventParents)this._eventParents[a].fire(r.type,o({layer:r.target,propagatedFrom:r.target},r),!0)}};K.addEventListener=K.on,K.removeEventListener=K.clearAllEventListeners=K.off,K.addOneTimeEventListener=K.once,K.fireEvent=K.fire,K.hasEventListeners=K.listens;var W=P.extend(K);function x(r,a,u){this.x=u?Math.round(r):r,this.y=u?Math.round(a):a}var ve=Math.trunc||function(r){return r>0?Math.floor(r):Math.ceil(r)};x.prototype={clone:function(){return new x(this.x,this.y)},add:function(r){return this.clone()._add(re(r))},_add:function(r){return this.x+=r.x,this.y+=r.y,this},subtract:function(r){return this.clone()._subtract(re(r))},_subtract:function(r){return this.x-=r.x,this.y-=r.y,this},divideBy:function(r){return this.clone()._divideBy(r)},_divideBy:function(r){return this.x/=r,this.y/=r,this},multiplyBy:function(r){return this.clone()._multiplyBy(r)},_multiplyBy:function(r){return this.x*=r,this.y*=r,this},scaleBy:function(r){return new x(this.x*r.x,this.y*r.y)},unscaleBy:function(r){return new x(this.x/r.x,this.y/r.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=ve(this.x),this.y=ve(this.y),this},distanceTo:function(r){r=re(r);var a=r.x-this.x,u=r.y-this.y;return Math.sqrt(a*a+u*u)},equals:function(r){return r=re(r),r.x===this.x&&r.y===this.y},contains:function(r){return r=re(r),Math.abs(r.x)<=Math.abs(this.x)&&Math.abs(r.y)<=Math.abs(this.y)},toString:function(){return"Point("+y(this.x)+", "+y(this.y)+")"}};function re(r,a,u){return r instanceof x?r:M(r)?new x(r[0],r[1]):r==null?r:typeof r=="object"&&"x"in r&&"y"in r?new x(r.x,r.y):new x(r,a,u)}function _e(r,a){if(r)for(var u=a?[r,a]:r,h=0,m=u.length;h<m;h++)this.extend(u[h])}_e.prototype={extend:function(r){var a,u;if(!r)return this;if(r instanceof x||typeof r[0]=="number"||"x"in r)a=u=re(r);else if(r=N(r),a=r.min,u=r.max,!a||!u)return this;return!this.min&&!this.max?(this.min=a.clone(),this.max=u.clone()):(this.min.x=Math.min(a.x,this.min.x),this.max.x=Math.max(u.x,this.max.x),this.min.y=Math.min(a.y,this.min.y),this.max.y=Math.max(u.y,this.max.y)),this},getCenter:function(r){return re((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,r)},getBottomLeft:function(){return re(this.min.x,this.max.y)},getTopRight:function(){return re(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(r){var a,u;return typeof r[0]=="number"||r instanceof x?r=re(r):r=N(r),r instanceof _e?(a=r.min,u=r.max):a=u=r,a.x>=this.min.x&&u.x<=this.max.x&&a.y>=this.min.y&&u.y<=this.max.y},intersects:function(r){r=N(r);var a=this.min,u=this.max,h=r.min,m=r.max,S=m.x>=a.x&&h.x<=u.x,D=m.y>=a.y&&h.y<=u.y;return S&&D},overlaps:function(r){r=N(r);var a=this.min,u=this.max,h=r.min,m=r.max,S=m.x>a.x&&h.x<u.x,D=m.y>a.y&&h.y<u.y;return S&&D},isValid:function(){return!!(this.min&&this.max)},pad:function(r){var a=this.min,u=this.max,h=Math.abs(a.x-u.x)*r,m=Math.abs(a.y-u.y)*r;return N(re(a.x-h,a.y-m),re(u.x+h,u.y+m))},equals:function(r){return r?(r=N(r),this.min.equals(r.getTopLeft())&&this.max.equals(r.getBottomRight())):!1}};function N(r,a){return!r||r instanceof _e?r:new _e(r,a)}function U(r,a){if(r)for(var u=a?[r,a]:r,h=0,m=u.length;h<m;h++)this.extend(u[h])}U.prototype={extend:function(r){var a=this._southWest,u=this._northEast,h,m;if(r instanceof H)h=r,m=r;else if(r instanceof U){if(h=r._southWest,m=r._northEast,!h||!m)return this}else return r?this.extend(ie(r)||k(r)):this;return!a&&!u?(this._southWest=new H(h.lat,h.lng),this._northEast=new H(m.lat,m.lng)):(a.lat=Math.min(h.lat,a.lat),a.lng=Math.min(h.lng,a.lng),u.lat=Math.max(m.lat,u.lat),u.lng=Math.max(m.lng,u.lng)),this},pad:function(r){var a=this._southWest,u=this._northEast,h=Math.abs(a.lat-u.lat)*r,m=Math.abs(a.lng-u.lng)*r;return new U(new H(a.lat-h,a.lng-m),new H(u.lat+h,u.lng+m))},getCenter:function(){return new H((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new H(this.getNorth(),this.getWest())},getSouthEast:function(){return new H(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(r){typeof r[0]=="number"||r instanceof H||"lat"in r?r=ie(r):r=k(r);var a=this._southWest,u=this._northEast,h,m;return r instanceof U?(h=r.getSouthWest(),m=r.getNorthEast()):h=m=r,h.lat>=a.lat&&m.lat<=u.lat&&h.lng>=a.lng&&m.lng<=u.lng},intersects:function(r){r=k(r);var a=this._southWest,u=this._northEast,h=r.getSouthWest(),m=r.getNorthEast(),S=m.lat>=a.lat&&h.lat<=u.lat,D=m.lng>=a.lng&&h.lng<=u.lng;return S&&D},overlaps:function(r){r=k(r);var a=this._southWest,u=this._northEast,h=r.getSouthWest(),m=r.getNorthEast(),S=m.lat>a.lat&&h.lat<u.lat,D=m.lng>a.lng&&h.lng<u.lng;return S&&D},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(r,a){return r?(r=k(r),this._southWest.equals(r.getSouthWest(),a)&&this._northEast.equals(r.getNorthEast(),a)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function k(r,a){return r instanceof U?r:new U(r,a)}function H(r,a,u){if(isNaN(r)||isNaN(a))throw new Error("Invalid LatLng object: ("+r+", "+a+")");this.lat=+r,this.lng=+a,u!==void 0&&(this.alt=+u)}H.prototype={equals:function(r,a){if(!r)return!1;r=ie(r);var u=Math.max(Math.abs(this.lat-r.lat),Math.abs(this.lng-r.lng));return u<=(a===void 0?1e-9:a)},toString:function(r){return"LatLng("+y(this.lat,r)+", "+y(this.lng,r)+")"},distanceTo:function(r){return X.distance(this,ie(r))},wrap:function(){return X.wrapLatLng(this)},toBounds:function(r){var a=180*r/40075017,u=a/Math.cos(Math.PI/180*this.lat);return k([this.lat-a,this.lng-u],[this.lat+a,this.lng+u])},clone:function(){return new H(this.lat,this.lng,this.alt)}};function ie(r,a,u){return r instanceof H?r:M(r)&&typeof r[0]!="object"?r.length===3?new H(r[0],r[1],r[2]):r.length===2?new H(r[0],r[1]):null:r==null?r:typeof r=="object"&&"lat"in r?new H(r.lat,"lng"in r?r.lng:r.lon,r.alt):a===void 0?null:new H(r,a,u)}var O={latLngToPoint:function(r,a){var u=this.projection.project(r),h=this.scale(a);return this.transformation._transform(u,h)},pointToLatLng:function(r,a){var u=this.scale(a),h=this.transformation.untransform(r,u);return this.projection.unproject(h)},project:function(r){return this.projection.project(r)},unproject:function(r){return this.projection.unproject(r)},scale:function(r){return 256*Math.pow(2,r)},zoom:function(r){return Math.log(r/256)/Math.LN2},getProjectedBounds:function(r){if(this.infinite)return null;var a=this.projection.bounds,u=this.scale(r),h=this.transformation.transform(a.min,u),m=this.transformation.transform(a.max,u);return new _e(h,m)},infinite:!1,wrapLatLng:function(r){var a=this.wrapLng?_(r.lng,this.wrapLng,!0):r.lng,u=this.wrapLat?_(r.lat,this.wrapLat,!0):r.lat,h=r.alt;return new H(u,a,h)},wrapLatLngBounds:function(r){var a=r.getCenter(),u=this.wrapLatLng(a),h=a.lat-u.lat,m=a.lng-u.lng;if(h===0&&m===0)return r;var S=r.getSouthWest(),D=r.getNorthEast(),$=new H(S.lat-h,S.lng-m),Z=new H(D.lat-h,D.lng-m);return new U($,Z)}},X=o({},O,{wrapLng:[-180,180],R:6371e3,distance:function(r,a){var u=Math.PI/180,h=r.lat*u,m=a.lat*u,S=Math.sin((a.lat-r.lat)*u/2),D=Math.sin((a.lng-r.lng)*u/2),$=S*S+Math.cos(h)*Math.cos(m)*D*D,Z=2*Math.atan2(Math.sqrt($),Math.sqrt(1-$));return this.R*Z}}),J=6378137,fe={R:J,MAX_LATITUDE:85.0511287798,project:function(r){var a=Math.PI/180,u=this.MAX_LATITUDE,h=Math.max(Math.min(u,r.lat),-u),m=Math.sin(h*a);return new x(this.R*r.lng*a,this.R*Math.log((1+m)/(1-m))/2)},unproject:function(r){var a=180/Math.PI;return new H((2*Math.atan(Math.exp(r.y/this.R))-Math.PI/2)*a,r.x*a/this.R)},bounds:function(){var r=J*Math.PI;return new _e([-r,-r],[r,r])}()};function Oe(r,a,u,h){if(M(r)){this._a=r[0],this._b=r[1],this._c=r[2],this._d=r[3];return}this._a=r,this._b=a,this._c=u,this._d=h}Oe.prototype={transform:function(r,a){return this._transform(r.clone(),a)},_transform:function(r,a){return a=a||1,r.x=a*(this._a*r.x+this._b),r.y=a*(this._c*r.y+this._d),r},untransform:function(r,a){return a=a||1,new x((r.x/a-this._b)/this._a,(r.y/a-this._d)/this._c)}};function Ge(r,a,u,h){return new Oe(r,a,u,h)}var we=o({},X,{code:"EPSG:3857",projection:fe,transformation:function(){var r=.5/(Math.PI*fe.R);return Ge(r,.5,-r,.5)}()}),be=o({},we,{code:"EPSG:900913"});function ze(r){return document.createElementNS("http://www.w3.org/2000/svg",r)}function Wt(r,a){var u="",h,m,S,D,$,Z;for(h=0,S=r.length;h<S;h++){for($=r[h],m=0,D=$.length;m<D;m++)Z=$[m],u+=(m?"L":"M")+Z.x+" "+Z.y;u+=a?xe.svg?"z":"x":""}return u||"M0 0"}var dt=document.documentElement.style,q="ActiveXObject"in window,me=q&&!document.addEventListener,Pe="msLaunchUri"in navigator&&!("documentMode"in document),Ee=ln("webkit"),I=ln("android"),j=ln("android 2")||ln("android 3"),ne=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),te=I&&ln("Google")&&ne<537&&!("AudioNode"in window),le=!!window.opera,ke=!Pe&&ln("chrome"),De=ln("gecko")&&!Ee&&!le&&!q,He=!ke&&ln("safari"),Me=ln("phantom"),at="OTransition"in dt,vt=navigator.platform.indexOf("Win")===0,Vt=q&&"transition"in dt,Rn="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!j,Hn="MozPerspective"in dt,_n=!window.L_DISABLE_3D&&(Vt||Rn||Hn)&&!at&&!Me,or=typeof orientation<"u"||ln("mobile"),fl=or&&Ee,Y=or&&Rn,ee=!window.PointerEvent&&window.MSPointerEvent,de=!!(window.PointerEvent||ee),Ce="ontouchstart"in window||!!window.TouchEvent,Be=!window.L_NO_TOUCH&&(Ce||de),Ae=or&&le,nt=or&&De,Tt=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,kn=function(){var r=!1;try{var a=Object.defineProperty({},"passive",{get:function(){r=!0}});window.addEventListener("testPassiveEventSupport",v,a),window.removeEventListener("testPassiveEventSupport",v,a)}catch{}return r}(),Ue=function(){return!!document.createElement("canvas").getContext}(),dl=!!(document.createElementNS&&ze("svg").createSVGRect),au=!!dl&&function(){var r=document.createElement("div");return r.innerHTML="<svg/>",(r.firstChild&&r.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),zv=!dl&&function(){try{var r=document.createElement("div");r.innerHTML='<v:shape adj="1"/>';var a=r.firstChild;return a.style.behavior="url(#default#VML)",a&&typeof a.adj=="object"}catch{return!1}}(),Va=navigator.platform.indexOf("Mac")===0,su=navigator.platform.indexOf("Linux")===0;function ln(r){return navigator.userAgent.toLowerCase().indexOf(r)>=0}var xe={ie:q,ielt9:me,edge:Pe,webkit:Ee,android:I,android23:j,androidStock:te,opera:le,chrome:ke,gecko:De,safari:He,phantom:Me,opera12:at,win:vt,ie3d:Vt,webkit3d:Rn,gecko3d:Hn,any3d:_n,mobile:or,mobileWebkit:fl,mobileWebkit3d:Y,msPointer:ee,pointer:de,touch:Be,touchNative:Ce,mobileOpera:Ae,mobileGecko:nt,retina:Tt,passiveEvents:kn,canvas:Ue,svg:dl,vml:zv,inlineSvg:au,mac:Va,linux:su},Qd=xe.msPointer?"MSPointerDown":"pointerdown",lu=xe.msPointer?"MSPointerMove":"pointermove",Fa=xe.msPointer?"MSPointerUp":"pointerup",Ya=xe.msPointer?"MSPointerCancel":"pointercancel",Mi={touchstart:Qd,touchmove:lu,touchend:Fa,touchcancel:Ya},eh={touchstart:Y2,touchmove:th,touchend:th,touchcancel:th},Jr={},hl=!1;function Xt(r,a,u){return a==="touchstart"&&F2(),eh[a]?(u=eh[a].bind(this,u),r.addEventListener(Mi[a],u,!1),u):(console.warn("wrong event specified:",a),v)}function Ai(r,a,u){if(!Mi[a]){console.warn("wrong event specified:",a);return}r.removeEventListener(Mi[a],u,!1)}function B2(r){Jr[r.pointerId]=r}function V2(r){Jr[r.pointerId]&&(Jr[r.pointerId]=r)}function WT(r){delete Jr[r.pointerId]}function F2(){hl||(document.addEventListener(Qd,B2,!0),document.addEventListener(lu,V2,!0),document.addEventListener(Fa,WT,!0),document.addEventListener(Ya,WT,!0),hl=!0)}function th(r,a){if(a.pointerType!==(a.MSPOINTER_TYPE_MOUSE||"mouse")){a.touches=[];for(var u in Jr)a.touches.push(Jr[u]);a.changedTouches=[a],r(a)}}function Y2(r,a){a.MSPOINTER_TYPE_TOUCH&&a.pointerType===a.MSPOINTER_TYPE_TOUCH&&cn(a),th(r,a)}function $2(r){var a={},u,h;for(h in r)u=r[h],a[h]=u&&u.bind?u.bind(r):u;return r=a,a.type="dblclick",a.detail=2,a.isTrusted=!1,a._simulated=!0,a}var U2=200;function z2(r,a){r.addEventListener("dblclick",a);var u=0,h;function m(S){if(S.detail!==1){h=S.detail;return}if(!(S.pointerType==="mouse"||S.sourceCapabilities&&!S.sourceCapabilities.firesTouchEvents)){var D=KT(S);if(!(D.some(function(Z){return Z instanceof HTMLLabelElement&&Z.attributes.for})&&!D.some(function(Z){return Z instanceof HTMLInputElement||Z instanceof HTMLSelectElement}))){var $=Date.now();$-u<=U2?(h++,h===2&&a($2(S))):h=1,u=$}}}return r.addEventListener("click",m),{dblclick:a,simDblclick:m}}function H2(r,a){r.removeEventListener("dblclick",a.dblclick),r.removeEventListener("click",a.simDblclick)}var Hv=ih(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),cu=ih(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ZT=cu==="webkitTransition"||cu==="OTransition"?cu+"End":"transitionend";function GT(r){return typeof r=="string"?document.getElementById(r):r}function uu(r,a){var u=r.style[a]||r.currentStyle&&r.currentStyle[a];if((!u||u==="auto")&&document.defaultView){var h=document.defaultView.getComputedStyle(r,null);u=h?h[a]:null}return u==="auto"?null:u}function ht(r,a,u){var h=document.createElement(r);return h.className=a||"",u&&u.appendChild(h),h}function Rt(r){var a=r.parentNode;a&&a.removeChild(r)}function nh(r){for(;r.firstChild;)r.removeChild(r.firstChild)}function pl(r){var a=r.parentNode;a&&a.lastChild!==r&&a.appendChild(r)}function _l(r){var a=r.parentNode;a&&a.firstChild!==r&&a.insertBefore(r,a.firstChild)}function Wv(r,a){if(r.classList!==void 0)return r.classList.contains(a);var u=rh(r);return u.length>0&&new RegExp("(^|\\s)"+a+"(\\s|$)").test(u)}function qe(r,a){if(r.classList!==void 0)for(var u=E(a),h=0,m=u.length;h<m;h++)r.classList.add(u[h]);else if(!Wv(r,a)){var S=rh(r);Zv(r,(S?S+" ":"")+a)}}function Ft(r,a){r.classList!==void 0?r.classList.remove(a):Zv(r,g((" "+rh(r)+" ").replace(" "+a+" "," ")))}function Zv(r,a){r.className.baseVal===void 0?r.className=a:r.className.baseVal=a}function rh(r){return r.correspondingElement&&(r=r.correspondingElement),r.className.baseVal===void 0?r.className:r.className.baseVal}function ar(r,a){"opacity"in r.style?r.style.opacity=a:"filter"in r.style&&W2(r,a)}function W2(r,a){var u=!1,h="DXImageTransform.Microsoft.Alpha";try{u=r.filters.item(h)}catch{if(a===1)return}a=Math.round(a*100),u?(u.Enabled=a!==100,u.Opacity=a):r.style.filter+=" progid:"+h+"(opacity="+a+")"}function ih(r){for(var a=document.documentElement.style,u=0;u<r.length;u++)if(r[u]in a)return r[u];return!1}function $a(r,a,u){var h=a||new x(0,0);r.style[Hv]=(xe.ie3d?"translate("+h.x+"px,"+h.y+"px)":"translate3d("+h.x+"px,"+h.y+"px,0)")+(u?" scale("+u+")":"")}function Zt(r,a){r._leaflet_pos=a,xe.any3d?$a(r,a):(r.style.left=a.x+"px",r.style.top=a.y+"px")}function Ua(r){return r._leaflet_pos||new x(0,0)}var fu,du,Gv;if("onselectstart"in document)fu=function(){We(window,"selectstart",cn)},du=function(){bt(window,"selectstart",cn)};else{var hu=ih(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);fu=function(){if(hu){var r=document.documentElement.style;Gv=r[hu],r[hu]="none"}},du=function(){hu&&(document.documentElement.style[hu]=Gv,Gv=void 0)}}function jv(){We(window,"dragstart",cn)}function qv(){bt(window,"dragstart",cn)}var oh,Kv;function Xv(r){for(;r.tabIndex===-1;)r=r.parentNode;r.style&&(ah(),oh=r,Kv=r.style.outlineStyle,r.style.outlineStyle="none",We(window,"keydown",ah))}function ah(){oh&&(oh.style.outlineStyle=Kv,oh=void 0,Kv=void 0,bt(window,"keydown",ah))}function jT(r){do r=r.parentNode;while((!r.offsetWidth||!r.offsetHeight)&&r!==document.body);return r}function Jv(r){var a=r.getBoundingClientRect();return{x:a.width/r.offsetWidth||1,y:a.height/r.offsetHeight||1,boundingClientRect:a}}var Z2={__proto__:null,TRANSFORM:Hv,TRANSITION:cu,TRANSITION_END:ZT,get:GT,getStyle:uu,create:ht,remove:Rt,empty:nh,toFront:pl,toBack:_l,hasClass:Wv,addClass:qe,removeClass:Ft,setClass:Zv,getClass:rh,setOpacity:ar,testProp:ih,setTransform:$a,setPosition:Zt,getPosition:Ua,get disableTextSelection(){return fu},get enableTextSelection(){return du},disableImageDrag:jv,enableImageDrag:qv,preventOutline:Xv,restoreOutline:ah,getSizedParentNode:jT,getScale:Jv};function We(r,a,u,h){if(a&&typeof a=="object")for(var m in a)eg(r,m,a[m],u);else{a=E(a);for(var S=0,D=a.length;S<D;S++)eg(r,a[S],u,h)}return this}var Qr="_leaflet_events";function bt(r,a,u,h){if(arguments.length===1)qT(r),delete r[Qr];else if(a&&typeof a=="object")for(var m in a)tg(r,m,a[m],u);else if(a=E(a),arguments.length===2)qT(r,function($){return z(a,$)!==-1});else for(var S=0,D=a.length;S<D;S++)tg(r,a[S],u,h);return this}function qT(r,a){for(var u in r[Qr]){var h=u.split(/\d/)[0];(!a||a(h))&&tg(r,h,null,null,u)}}var Qv={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function eg(r,a,u,h){var m=a+d(u)+(h?"_"+d(h):"");if(r[Qr]&&r[Qr][m])return this;var S=function($){return u.call(h||r,$||window.event)},D=S;!xe.touchNative&&xe.pointer&&a.indexOf("touch")===0?S=Xt(r,a,S):xe.touch&&a==="dblclick"?S=z2(r,S):"addEventListener"in r?a==="touchstart"||a==="touchmove"||a==="wheel"||a==="mousewheel"?r.addEventListener(Qv[a]||a,S,xe.passiveEvents?{passive:!1}:!1):a==="mouseenter"||a==="mouseleave"?(S=function($){$=$||window.event,rg(r,$)&&D($)},r.addEventListener(Qv[a],S,!1)):r.addEventListener(a,D,!1):r.attachEvent("on"+a,S),r[Qr]=r[Qr]||{},r[Qr][m]=S}function tg(r,a,u,h,m){m=m||a+d(u)+(h?"_"+d(h):"");var S=r[Qr]&&r[Qr][m];if(!S)return this;!xe.touchNative&&xe.pointer&&a.indexOf("touch")===0?Ai(r,a,S):xe.touch&&a==="dblclick"?H2(r,S):"removeEventListener"in r?r.removeEventListener(Qv[a]||a,S,!1):r.detachEvent("on"+a,S),r[Qr][m]=null}function za(r){return r.stopPropagation?r.stopPropagation():r.originalEvent?r.originalEvent._stopped=!0:r.cancelBubble=!0,this}function ng(r){return eg(r,"wheel",za),this}function pu(r){return We(r,"mousedown touchstart dblclick contextmenu",za),r._leaflet_disable_click=!0,this}function cn(r){return r.preventDefault?r.preventDefault():r.returnValue=!1,this}function Ha(r){return cn(r),za(r),this}function KT(r){if(r.composedPath)return r.composedPath();for(var a=[],u=r.target;u;)a.push(u),u=u.parentNode;return a}function XT(r,a){if(!a)return new x(r.clientX,r.clientY);var u=Jv(a),h=u.boundingClientRect;return new x((r.clientX-h.left)/u.x-a.clientLeft,(r.clientY-h.top)/u.y-a.clientTop)}var G2=xe.linux&&xe.chrome?window.devicePixelRatio:xe.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function JT(r){return xe.edge?r.wheelDeltaY/2:r.deltaY&&r.deltaMode===0?-r.deltaY/G2:r.deltaY&&r.deltaMode===1?-r.deltaY*20:r.deltaY&&r.deltaMode===2?-r.deltaY*60:r.deltaX||r.deltaZ?0:r.wheelDelta?(r.wheelDeltaY||r.wheelDelta)/2:r.detail&&Math.abs(r.detail)<32765?-r.detail*20:r.detail?r.detail/-32765*60:0}function rg(r,a){var u=a.relatedTarget;if(!u)return!0;try{for(;u&&u!==r;)u=u.parentNode}catch{return!1}return u!==r}var j2={__proto__:null,on:We,off:bt,stopPropagation:za,disableScrollPropagation:ng,disableClickPropagation:pu,preventDefault:cn,stop:Ha,getPropagationPath:KT,getMousePosition:XT,getWheelDelta:JT,isExternalTarget:rg,addListener:We,removeListener:bt},QT=W.extend({run:function(r,a,u,h){this.stop(),this._el=r,this._inProgress=!0,this._duration=u||.25,this._easeOutPower=1/Math.max(h||.5,.2),this._startPos=Ua(r),this._offset=a.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=B(this._animate,this),this._step()},_step:function(r){var a=+new Date-this._startTime,u=this._duration*1e3;a<u?this._runFrame(this._easeOut(a/u),r):(this._runFrame(1),this._complete())},_runFrame:function(r,a){var u=this._startPos.add(this._offset.multiplyBy(r));a&&u._round(),Zt(this._el,u),this.fire("step")},_complete:function(){ae(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(r){return 1-Math.pow(1-r,this._easeOutPower)}}),st=W.extend({options:{crs:we,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(r,a){a=w(this,a),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(r),this._initLayout(),this._onResize=c(this._onResize,this),this._initEvents(),a.maxBounds&&this.setMaxBounds(a.maxBounds),a.zoom!==void 0&&(this._zoom=this._limitZoom(a.zoom)),a.center&&a.zoom!==void 0&&this.setView(ie(a.center),a.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=cu&&xe.any3d&&!xe.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),We(this._proxy,ZT,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(r,a,u){if(a=a===void 0?this._zoom:this._limitZoom(a),r=this._limitCenter(ie(r),a,this.options.maxBounds),u=u||{},this._stop(),this._loaded&&!u.reset&&u!==!0){u.animate!==void 0&&(u.zoom=o({animate:u.animate},u.zoom),u.pan=o({animate:u.animate,duration:u.duration},u.pan));var h=this._zoom!==a?this._tryAnimatedZoom&&this._tryAnimatedZoom(r,a,u.zoom):this._tryAnimatedPan(r,u.pan);if(h)return clearTimeout(this._sizeTimer),this}return this._resetView(r,a,u.pan&&u.pan.noMoveStart),this},setZoom:function(r,a){return this._loaded?this.setView(this.getCenter(),r,{zoom:a}):(this._zoom=r,this)},zoomIn:function(r,a){return r=r||(xe.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+r,a)},zoomOut:function(r,a){return r=r||(xe.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-r,a)},setZoomAround:function(r,a,u){var h=this.getZoomScale(a),m=this.getSize().divideBy(2),S=r instanceof x?r:this.latLngToContainerPoint(r),D=S.subtract(m).multiplyBy(1-1/h),$=this.containerPointToLatLng(m.add(D));return this.setView($,a,{zoom:u})},_getBoundsCenterZoom:function(r,a){a=a||{},r=r.getBounds?r.getBounds():k(r);var u=re(a.paddingTopLeft||a.padding||[0,0]),h=re(a.paddingBottomRight||a.padding||[0,0]),m=this.getBoundsZoom(r,!1,u.add(h));if(m=typeof a.maxZoom=="number"?Math.min(a.maxZoom,m):m,m===1/0)return{center:r.getCenter(),zoom:m};var S=h.subtract(u).divideBy(2),D=this.project(r.getSouthWest(),m),$=this.project(r.getNorthEast(),m),Z=this.unproject(D.add($).divideBy(2).add(S),m);return{center:Z,zoom:m}},fitBounds:function(r,a){if(r=k(r),!r.isValid())throw new Error("Bounds are not valid.");var u=this._getBoundsCenterZoom(r,a);return this.setView(u.center,u.zoom,a)},fitWorld:function(r){return this.fitBounds([[-90,-180],[90,180]],r)},panTo:function(r,a){return this.setView(r,this._zoom,{pan:a})},panBy:function(r,a){if(r=re(r).round(),a=a||{},!r.x&&!r.y)return this.fire("moveend");if(a.animate!==!0&&!this.getSize().contains(r))return this._resetView(this.unproject(this.project(this.getCenter()).add(r)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new QT,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),a.noMoveStart||this.fire("movestart"),a.animate!==!1){qe(this._mapPane,"leaflet-pan-anim");var u=this._getMapPanePos().subtract(r).round();this._panAnim.run(this._mapPane,u,a.duration||.25,a.easeLinearity)}else this._rawPanBy(r),this.fire("move").fire("moveend");return this},flyTo:function(r,a,u){if(u=u||{},u.animate===!1||!xe.any3d)return this.setView(r,a,u);this._stop();var h=this.project(this.getCenter()),m=this.project(r),S=this.getSize(),D=this._zoom;r=ie(r),a=a===void 0?D:a;var $=Math.max(S.x,S.y),Z=$*this.getZoomScale(D,a),se=m.distanceTo(h)||1,ye=1.42,Fe=ye*ye;function Qe(Gt){var gh=Gt?-1:1,AY=Gt?Z:$,BY=Z*Z-$*$+gh*Fe*Fe*se*se,VY=2*AY*Fe*se,pg=BY/VY,Rb=Math.sqrt(pg*pg+1)-pg,FY=Rb<1e-9?-18:Math.log(Rb);return FY}function Cn(Gt){return(Math.exp(Gt)-Math.exp(-Gt))/2}function tn(Gt){return(Math.exp(Gt)+Math.exp(-Gt))/2}function lr(Gt){return Cn(Gt)/tn(Gt)}var Ln=Qe(0);function wl(Gt){return $*(tn(Ln)/tn(Ln+ye*Gt))}function IY(Gt){return $*(tn(Ln)*lr(Ln+ye*Gt)-Cn(Ln))/Fe}function RY(Gt){return 1-Math.pow(1-Gt,1.5)}var LY=Date.now(),Ob=(Qe(1)-Ln)/ye,MY=u.duration?1e3*u.duration:1e3*Ob*.8;function Ib(){var Gt=(Date.now()-LY)/MY,gh=RY(Gt)*Ob;Gt<=1?(this._flyToFrame=B(Ib,this),this._move(this.unproject(h.add(m.subtract(h).multiplyBy(IY(gh)/se)),D),this.getScaleZoom($/wl(gh),D),{flyTo:!0})):this._move(r,a)._moveEnd(!0)}return this._moveStart(!0,u.noMoveStart),Ib.call(this),this},flyToBounds:function(r,a){var u=this._getBoundsCenterZoom(r,a);return this.flyTo(u.center,u.zoom,a)},setMaxBounds:function(r){return r=k(r),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),r.isValid()?(this.options.maxBounds=r,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(r){var a=this.options.minZoom;return this.options.minZoom=r,this._loaded&&a!==r&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(r):this},setMaxZoom:function(r){var a=this.options.maxZoom;return this.options.maxZoom=r,this._loaded&&a!==r&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(r):this},panInsideBounds:function(r,a){this._enforcingBounds=!0;var u=this.getCenter(),h=this._limitCenter(u,this._zoom,k(r));return u.equals(h)||this.panTo(h,a),this._enforcingBounds=!1,this},panInside:function(r,a){a=a||{};var u=re(a.paddingTopLeft||a.padding||[0,0]),h=re(a.paddingBottomRight||a.padding||[0,0]),m=this.project(this.getCenter()),S=this.project(r),D=this.getPixelBounds(),$=N([D.min.add(u),D.max.subtract(h)]),Z=$.getSize();if(!$.contains(S)){this._enforcingBounds=!0;var se=S.subtract($.getCenter()),ye=$.extend(S).getSize().subtract(Z);m.x+=se.x<0?-ye.x:ye.x,m.y+=se.y<0?-ye.y:ye.y,this.panTo(this.unproject(m),a),this._enforcingBounds=!1}return this},invalidateSize:function(r){if(!this._loaded)return this;r=o({animate:!1,pan:!0},r===!0?{animate:!0}:r);var a=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var u=this.getSize(),h=a.divideBy(2).round(),m=u.divideBy(2).round(),S=h.subtract(m);return!S.x&&!S.y?this:(r.animate&&r.pan?this.panBy(S):(r.pan&&this._rawPanBy(S),this.fire("move"),r.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(c(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:a,newSize:u}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(r){if(r=this._locateOptions=o({timeout:1e4,watch:!1},r),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var a=c(this._handleGeolocationResponse,this),u=c(this._handleGeolocationError,this);return r.watch?this._locationWatchId=navigator.geolocation.watchPosition(a,u,r):navigator.geolocation.getCurrentPosition(a,u,r),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(r){if(this._container._leaflet_id){var a=r.code,u=r.message||(a===1?"permission denied":a===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:a,message:"Geolocation error: "+u+"."})}},_handleGeolocationResponse:function(r){if(this._container._leaflet_id){var a=r.coords.latitude,u=r.coords.longitude,h=new H(a,u),m=h.toBounds(r.coords.accuracy*2),S=this._locateOptions;if(S.setView){var D=this.getBoundsZoom(m);this.setView(h,S.maxZoom?Math.min(D,S.maxZoom):D)}var $={latlng:h,bounds:m,timestamp:r.timestamp};for(var Z in r.coords)typeof r.coords[Z]=="number"&&($[Z]=r.coords[Z]);this.fire("locationfound",$)}},addHandler:function(r,a){if(!a)return this;var u=this[r]=new a(this);return this._handlers.push(u),this.options[r]&&u.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Rt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(ae(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var r;for(r in this._layers)this._layers[r].remove();for(r in this._panes)Rt(this._panes[r]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(r,a){var u="leaflet-pane"+(r?" leaflet-"+r.replace("Pane","")+"-pane":""),h=ht("div",u,a||this._mapPane);return r&&(this._panes[r]=h),h},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var r=this.getPixelBounds(),a=this.unproject(r.getBottomLeft()),u=this.unproject(r.getTopRight());return new U(a,u)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(r,a,u){r=k(r),u=re(u||[0,0]);var h=this.getZoom()||0,m=this.getMinZoom(),S=this.getMaxZoom(),D=r.getNorthWest(),$=r.getSouthEast(),Z=this.getSize().subtract(u),se=N(this.project($,h),this.project(D,h)).getSize(),ye=xe.any3d?this.options.zoomSnap:1,Fe=Z.x/se.x,Qe=Z.y/se.y,Cn=a?Math.max(Fe,Qe):Math.min(Fe,Qe);return h=this.getScaleZoom(Cn,h),ye&&(h=Math.round(h/(ye/100))*(ye/100),h=a?Math.ceil(h/ye)*ye:Math.floor(h/ye)*ye),Math.max(m,Math.min(S,h))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new x(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(r,a){var u=this._getTopLeftPoint(r,a);return new _e(u,u.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(r){return this.options.crs.getProjectedBounds(r===void 0?this.getZoom():r)},getPane:function(r){return typeof r=="string"?this._panes[r]:r},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(r,a){var u=this.options.crs;return a=a===void 0?this._zoom:a,u.scale(r)/u.scale(a)},getScaleZoom:function(r,a){var u=this.options.crs;a=a===void 0?this._zoom:a;var h=u.zoom(r*u.scale(a));return isNaN(h)?1/0:h},project:function(r,a){return a=a===void 0?this._zoom:a,this.options.crs.latLngToPoint(ie(r),a)},unproject:function(r,a){return a=a===void 0?this._zoom:a,this.options.crs.pointToLatLng(re(r),a)},layerPointToLatLng:function(r){var a=re(r).add(this.getPixelOrigin());return this.unproject(a)},latLngToLayerPoint:function(r){var a=this.project(ie(r))._round();return a._subtract(this.getPixelOrigin())},wrapLatLng:function(r){return this.options.crs.wrapLatLng(ie(r))},wrapLatLngBounds:function(r){return this.options.crs.wrapLatLngBounds(k(r))},distance:function(r,a){return this.options.crs.distance(ie(r),ie(a))},containerPointToLayerPoint:function(r){return re(r).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(r){return re(r).add(this._getMapPanePos())},containerPointToLatLng:function(r){var a=this.containerPointToLayerPoint(re(r));return this.layerPointToLatLng(a)},latLngToContainerPoint:function(r){return this.layerPointToContainerPoint(this.latLngToLayerPoint(ie(r)))},mouseEventToContainerPoint:function(r){return XT(r,this._container)},mouseEventToLayerPoint:function(r){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(r))},mouseEventToLatLng:function(r){return this.layerPointToLatLng(this.mouseEventToLayerPoint(r))},_initContainer:function(r){var a=this._container=GT(r);if(a){if(a._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");We(a,"scroll",this._onScroll,this),this._containerId=d(a)},_initLayout:function(){var r=this._container;this._fadeAnimated=this.options.fadeAnimation&&xe.any3d,qe(r,"leaflet-container"+(xe.touch?" leaflet-touch":"")+(xe.retina?" leaflet-retina":"")+(xe.ielt9?" leaflet-oldie":"")+(xe.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var a=uu(r,"position");a!=="absolute"&&a!=="relative"&&a!=="fixed"&&a!=="sticky"&&(r.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var r=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Zt(this._mapPane,new x(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(qe(r.markerPane,"leaflet-zoom-hide"),qe(r.shadowPane,"leaflet-zoom-hide"))},_resetView:function(r,a,u){Zt(this._mapPane,new x(0,0));var h=!this._loaded;this._loaded=!0,a=this._limitZoom(a),this.fire("viewprereset");var m=this._zoom!==a;this._moveStart(m,u)._move(r,a)._moveEnd(m),this.fire("viewreset"),h&&this.fire("load")},_moveStart:function(r,a){return r&&this.fire("zoomstart"),a||this.fire("movestart"),this},_move:function(r,a,u,h){a===void 0&&(a=this._zoom);var m=this._zoom!==a;return this._zoom=a,this._lastCenter=r,this._pixelOrigin=this._getNewPixelOrigin(r),h?u&&u.pinch&&this.fire("zoom",u):((m||u&&u.pinch)&&this.fire("zoom",u),this.fire("move",u)),this},_moveEnd:function(r){return r&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return ae(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(r){Zt(this._mapPane,this._getMapPanePos().subtract(r))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(r){this._targets={},this._targets[d(this._container)]=this;var a=r?bt:We;a(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&a(window,"resize",this._onResize,this),xe.any3d&&this.options.transform3DLimit&&(r?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){ae(this._resizeRequest),this._resizeRequest=B(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var r=this._getMapPanePos();Math.max(Math.abs(r.x),Math.abs(r.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(r,a){for(var u=[],h,m=a==="mouseout"||a==="mouseover",S=r.target||r.srcElement,D=!1;S;){if(h=this._targets[d(S)],h&&(a==="click"||a==="preclick")&&this._draggableMoved(h)){D=!0;break}if(h&&h.listens(a,!0)&&(m&&!rg(S,r)||(u.push(h),m))||S===this._container)break;S=S.parentNode}return!u.length&&!D&&!m&&this.listens(a,!0)&&(u=[this]),u},_isClickDisabled:function(r){for(;r&&r!==this._container;){if(r._leaflet_disable_click)return!0;r=r.parentNode}},_handleDOMEvent:function(r){var a=r.target||r.srcElement;if(!(!this._loaded||a._leaflet_disable_events||r.type==="click"&&this._isClickDisabled(a))){var u=r.type;u==="mousedown"&&Xv(a),this._fireDOMEvent(r,u)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(r,a,u){if(r.type==="click"){var h=o({},r);h.type="preclick",this._fireDOMEvent(h,h.type,u)}var m=this._findEventTargets(r,a);if(u){for(var S=[],D=0;D<u.length;D++)u[D].listens(a,!0)&&S.push(u[D]);m=S.concat(m)}if(m.length){a==="contextmenu"&&cn(r);var $=m[0],Z={originalEvent:r};if(r.type!=="keypress"&&r.type!=="keydown"&&r.type!=="keyup"){var se=$.getLatLng&&(!$._radius||$._radius<=10);Z.containerPoint=se?this.latLngToContainerPoint($.getLatLng()):this.mouseEventToContainerPoint(r),Z.layerPoint=this.containerPointToLayerPoint(Z.containerPoint),Z.latlng=se?$.getLatLng():this.layerPointToLatLng(Z.layerPoint)}for(D=0;D<m.length;D++)if(m[D].fire(a,Z,!0),Z.originalEvent._stopped||m[D].options.bubblingMouseEvents===!1&&z(this._mouseEvents,a)!==-1)return}},_draggableMoved:function(r){return r=r.dragging&&r.dragging.enabled()?r:this,r.dragging&&r.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var r=0,a=this._handlers.length;r<a;r++)this._handlers[r].disable()},whenReady:function(r,a){return this._loaded?r.call(a||this,{target:this}):this.on("load",r,a),this},_getMapPanePos:function(){return Ua(this._mapPane)||new x(0,0)},_moved:function(){var r=this._getMapPanePos();return r&&!r.equals([0,0])},_getTopLeftPoint:function(r,a){var u=r&&a!==void 0?this._getNewPixelOrigin(r,a):this.getPixelOrigin();return u.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(r,a){var u=this.getSize()._divideBy(2);return this.project(r,a)._subtract(u)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(r,a,u){var h=this._getNewPixelOrigin(u,a);return this.project(r,a)._subtract(h)},_latLngBoundsToNewLayerBounds:function(r,a,u){var h=this._getNewPixelOrigin(u,a);return N([this.project(r.getSouthWest(),a)._subtract(h),this.project(r.getNorthWest(),a)._subtract(h),this.project(r.getSouthEast(),a)._subtract(h),this.project(r.getNorthEast(),a)._subtract(h)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(r){return this.latLngToLayerPoint(r).subtract(this._getCenterLayerPoint())},_limitCenter:function(r,a,u){if(!u)return r;var h=this.project(r,a),m=this.getSize().divideBy(2),S=new _e(h.subtract(m),h.add(m)),D=this._getBoundsOffset(S,u,a);return Math.abs(D.x)<=1&&Math.abs(D.y)<=1?r:this.unproject(h.add(D),a)},_limitOffset:function(r,a){if(!a)return r;var u=this.getPixelBounds(),h=new _e(u.min.add(r),u.max.add(r));return r.add(this._getBoundsOffset(h,a))},_getBoundsOffset:function(r,a,u){var h=N(this.project(a.getNorthEast(),u),this.project(a.getSouthWest(),u)),m=h.min.subtract(r.min),S=h.max.subtract(r.max),D=this._rebound(m.x,-S.x),$=this._rebound(m.y,-S.y);return new x(D,$)},_rebound:function(r,a){return r+a>0?Math.round(r-a)/2:Math.max(0,Math.ceil(r))-Math.max(0,Math.floor(a))},_limitZoom:function(r){var a=this.getMinZoom(),u=this.getMaxZoom(),h=xe.any3d?this.options.zoomSnap:1;return h&&(r=Math.round(r/h)*h),Math.max(a,Math.min(u,r))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Ft(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(r,a){var u=this._getCenterOffset(r)._trunc();return(a&&a.animate)!==!0&&!this.getSize().contains(u)?!1:(this.panBy(u,a),!0)},_createAnimProxy:function(){var r=this._proxy=ht("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(r),this.on("zoomanim",function(a){var u=Hv,h=this._proxy.style[u];$a(this._proxy,this.project(a.center,a.zoom),this.getZoomScale(a.zoom,1)),h===this._proxy.style[u]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Rt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var r=this.getCenter(),a=this.getZoom();$a(this._proxy,this.project(r,a),this.getZoomScale(a,1))},_catchTransitionEnd:function(r){this._animatingZoom&&r.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(r,a,u){if(this._animatingZoom)return!0;if(u=u||{},!this._zoomAnimated||u.animate===!1||this._nothingToAnimate()||Math.abs(a-this._zoom)>this.options.zoomAnimationThreshold)return!1;var h=this.getZoomScale(a),m=this._getCenterOffset(r)._divideBy(1-1/h);return u.animate!==!0&&!this.getSize().contains(m)?!1:(B(function(){this._moveStart(!0,u.noMoveStart||!1)._animateZoom(r,a,!0)},this),!0)},_animateZoom:function(r,a,u,h){this._mapPane&&(u&&(this._animatingZoom=!0,this._animateToCenter=r,this._animateToZoom=a,qe(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:r,zoom:a,noUpdate:h}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(c(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Ft(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function q2(r,a){return new st(r,a)}var Nr=P.extend({options:{position:"topright"},initialize:function(r){w(this,r)},getPosition:function(){return this.options.position},setPosition:function(r){var a=this._map;return a&&a.removeControl(this),this.options.position=r,a&&a.addControl(this),this},getContainer:function(){return this._container},addTo:function(r){this.remove(),this._map=r;var a=this._container=this.onAdd(r),u=this.getPosition(),h=r._controlCorners[u];return qe(a,"leaflet-control"),u.indexOf("bottom")!==-1?h.insertBefore(a,h.firstChild):h.appendChild(a),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Rt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(r){this._map&&r&&r.screenX>0&&r.screenY>0&&this._map.getContainer().focus()}}),_u=function(r){return new Nr(r)};st.include({addControl:function(r){return r.addTo(this),this},removeControl:function(r){return r.remove(),this},_initControlPos:function(){var r=this._controlCorners={},a="leaflet-",u=this._controlContainer=ht("div",a+"control-container",this._container);function h(m,S){var D=a+m+" "+a+S;r[m+S]=ht("div",D,u)}h("top","left"),h("top","right"),h("bottom","left"),h("bottom","right")},_clearControlPos:function(){for(var r in this._controlCorners)Rt(this._controlCorners[r]);Rt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var eb=Nr.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(r,a,u,h){return u<h?-1:h<u?1:0}},initialize:function(r,a,u){w(this,u),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var h in r)this._addLayer(r[h],h);for(h in a)this._addLayer(a[h],h,!0)},onAdd:function(r){this._initLayout(),this._update(),this._map=r,r.on("zoomend",this._checkDisabledLayers,this);for(var a=0;a<this._layers.length;a++)this._layers[a].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(r){return Nr.prototype.addTo.call(this,r),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var r=0;r<this._layers.length;r++)this._layers[r].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(r,a){return this._addLayer(r,a),this._map?this._update():this},addOverlay:function(r,a){return this._addLayer(r,a,!0),this._map?this._update():this},removeLayer:function(r){r.off("add remove",this._onLayerChange,this);var a=this._getLayer(d(r));return a&&this._layers.splice(this._layers.indexOf(a),1),this._map?this._update():this},expand:function(){qe(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var r=this._map.getSize().y-(this._container.offsetTop+50);return r<this._section.clientHeight?(qe(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=r+"px"):Ft(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Ft(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var r="leaflet-control-layers",a=this._container=ht("div",r),u=this.options.collapsed;a.setAttribute("aria-haspopup",!0),pu(a),ng(a);var h=this._section=ht("section",r+"-list");u&&(this._map.on("click",this.collapse,this),We(a,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var m=this._layersLink=ht("a",r+"-toggle",a);m.href="#",m.title="Layers",m.setAttribute("role","button"),We(m,{keydown:function(S){S.keyCode===13&&this._expandSafely()},click:function(S){cn(S),this._expandSafely()}},this),u||this.expand(),this._baseLayersList=ht("div",r+"-base",h),this._separator=ht("div",r+"-separator",h),this._overlaysList=ht("div",r+"-overlays",h),a.appendChild(h)},_getLayer:function(r){for(var a=0;a<this._layers.length;a++)if(this._layers[a]&&d(this._layers[a].layer)===r)return this._layers[a]},_addLayer:function(r,a,u){this._map&&r.on("add remove",this._onLayerChange,this),this._layers.push({layer:r,name:a,overlay:u}),this.options.sortLayers&&this._layers.sort(c(function(h,m){return this.options.sortFunction(h.layer,m.layer,h.name,m.name)},this)),this.options.autoZIndex&&r.setZIndex&&(this._lastZIndex++,r.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;nh(this._baseLayersList),nh(this._overlaysList),this._layerControlInputs=[];var r,a,u,h,m=0;for(u=0;u<this._layers.length;u++)h=this._layers[u],this._addItem(h),a=a||h.overlay,r=r||!h.overlay,m+=h.overlay?0:1;return this.options.hideSingleBase&&(r=r&&m>1,this._baseLayersList.style.display=r?"":"none"),this._separator.style.display=a&&r?"":"none",this},_onLayerChange:function(r){this._handlingClick||this._update();var a=this._getLayer(d(r.target)),u=a.overlay?r.type==="add"?"overlayadd":"overlayremove":r.type==="add"?"baselayerchange":null;u&&this._map.fire(u,a)},_createRadioElement:function(r,a){var u='<input type="radio" class="leaflet-control-layers-selector" name="'+r+'"'+(a?' checked="checked"':"")+"/>",h=document.createElement("div");return h.innerHTML=u,h.firstChild},_addItem:function(r){var a=document.createElement("label"),u=this._map.hasLayer(r.layer),h;r.overlay?(h=document.createElement("input"),h.type="checkbox",h.className="leaflet-control-layers-selector",h.defaultChecked=u):h=this._createRadioElement("leaflet-base-layers_"+d(this),u),this._layerControlInputs.push(h),h.layerId=d(r.layer),We(h,"click",this._onInputClick,this);var m=document.createElement("span");m.innerHTML=" "+r.name;var S=document.createElement("span");a.appendChild(S),S.appendChild(h),S.appendChild(m);var D=r.overlay?this._overlaysList:this._baseLayersList;return D.appendChild(a),this._checkDisabledLayers(),a},_onInputClick:function(){if(!this._preventClick){var r=this._layerControlInputs,a,u,h=[],m=[];this._handlingClick=!0;for(var S=r.length-1;S>=0;S--)a=r[S],u=this._getLayer(a.layerId).layer,a.checked?h.push(u):a.checked||m.push(u);for(S=0;S<m.length;S++)this._map.hasLayer(m[S])&&this._map.removeLayer(m[S]);for(S=0;S<h.length;S++)this._map.hasLayer(h[S])||this._map.addLayer(h[S]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var r=this._layerControlInputs,a,u,h=this._map.getZoom(),m=r.length-1;m>=0;m--)a=r[m],u=this._getLayer(a.layerId).layer,a.disabled=u.options.minZoom!==void 0&&h<u.options.minZoom||u.options.maxZoom!==void 0&&h>u.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var r=this._section;this._preventClick=!0,We(r,"click",cn),this.expand();var a=this;setTimeout(function(){bt(r,"click",cn),a._preventClick=!1})}}),K2=function(r,a,u){return new eb(r,a,u)},ig=Nr.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(r){var a="leaflet-control-zoom",u=ht("div",a+" leaflet-bar"),h=this.options;return this._zoomInButton=this._createButton(h.zoomInText,h.zoomInTitle,a+"-in",u,this._zoomIn),this._zoomOutButton=this._createButton(h.zoomOutText,h.zoomOutTitle,a+"-out",u,this._zoomOut),this._updateDisabled(),r.on("zoomend zoomlevelschange",this._updateDisabled,this),u},onRemove:function(r){r.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(r){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(r.shiftKey?3:1))},_zoomOut:function(r){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(r.shiftKey?3:1))},_createButton:function(r,a,u,h,m){var S=ht("a",u,h);return S.innerHTML=r,S.href="#",S.title=a,S.setAttribute("role","button"),S.setAttribute("aria-label",a),pu(S),We(S,"click",Ha),We(S,"click",m,this),We(S,"click",this._refocusOnMap,this),S},_updateDisabled:function(){var r=this._map,a="leaflet-disabled";Ft(this._zoomInButton,a),Ft(this._zoomOutButton,a),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||r._zoom===r.getMinZoom())&&(qe(this._zoomOutButton,a),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||r._zoom===r.getMaxZoom())&&(qe(this._zoomInButton,a),this._zoomInButton.setAttribute("aria-disabled","true"))}});st.mergeOptions({zoomControl:!0}),st.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new ig,this.addControl(this.zoomControl))});var X2=function(r){return new ig(r)},tb=Nr.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(r){var a="leaflet-control-scale",u=ht("div",a),h=this.options;return this._addScales(h,a+"-line",u),r.on(h.updateWhenIdle?"moveend":"move",this._update,this),r.whenReady(this._update,this),u},onRemove:function(r){r.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(r,a,u){r.metric&&(this._mScale=ht("div",a,u)),r.imperial&&(this._iScale=ht("div",a,u))},_update:function(){var r=this._map,a=r.getSize().y/2,u=r.distance(r.containerPointToLatLng([0,a]),r.containerPointToLatLng([this.options.maxWidth,a]));this._updateScales(u)},_updateScales:function(r){this.options.metric&&r&&this._updateMetric(r),this.options.imperial&&r&&this._updateImperial(r)},_updateMetric:function(r){var a=this._getRoundNum(r),u=a<1e3?a+" m":a/1e3+" km";this._updateScale(this._mScale,u,a/r)},_updateImperial:function(r){var a=r*3.2808399,u,h,m;a>5280?(u=a/5280,h=this._getRoundNum(u),this._updateScale(this._iScale,h+" mi",h/u)):(m=this._getRoundNum(a),this._updateScale(this._iScale,m+" ft",m/a))},_updateScale:function(r,a,u){r.style.width=Math.round(this.options.maxWidth*u)+"px",r.innerHTML=a},_getRoundNum:function(r){var a=Math.pow(10,(Math.floor(r)+"").length-1),u=r/a;return u=u>=10?10:u>=5?5:u>=3?3:u>=2?2:1,a*u}}),J2=function(r){return new tb(r)},Q2='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',og=Nr.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(xe.inlineSvg?Q2+" ":"")+"Leaflet</a>"},initialize:function(r){w(this,r),this._attributions={}},onAdd:function(r){r.attributionControl=this,this._container=ht("div","leaflet-control-attribution"),pu(this._container);for(var a in r._layers)r._layers[a].getAttribution&&this.addAttribution(r._layers[a].getAttribution());return this._update(),r.on("layeradd",this._addAttribution,this),this._container},onRemove:function(r){r.off("layeradd",this._addAttribution,this)},_addAttribution:function(r){r.layer.getAttribution&&(this.addAttribution(r.layer.getAttribution()),r.layer.once("remove",function(){this.removeAttribution(r.layer.getAttribution())},this))},setPrefix:function(r){return this.options.prefix=r,this._update(),this},addAttribution:function(r){return r?(this._attributions[r]||(this._attributions[r]=0),this._attributions[r]++,this._update(),this):this},removeAttribution:function(r){return r?(this._attributions[r]&&(this._attributions[r]--,this._update()),this):this},_update:function(){if(this._map){var r=[];for(var a in this._attributions)this._attributions[a]&&r.push(a);var u=[];this.options.prefix&&u.push(this.options.prefix),r.length&&u.push(r.join(", ")),this._container.innerHTML=u.join(' <span aria-hidden="true">|</span> ')}}});st.mergeOptions({attributionControl:!0}),st.addInitHook(function(){this.options.attributionControl&&new og().addTo(this)});var eY=function(r){return new og(r)};Nr.Layers=eb,Nr.Zoom=ig,Nr.Scale=tb,Nr.Attribution=og,_u.layers=K2,_u.zoom=X2,_u.scale=J2,_u.attribution=eY;var ei=P.extend({initialize:function(r){this._map=r},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});ei.addTo=function(r,a){return r.addHandler(a,this),this};var tY={Events:K},nb=xe.touch?"touchstart mousedown":"mousedown",Oo=W.extend({options:{clickTolerance:3},initialize:function(r,a,u,h){w(this,h),this._element=r,this._dragStartTarget=a||r,this._preventOutline=u},enable:function(){this._enabled||(We(this._dragStartTarget,nb,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Oo._dragging===this&&this.finishDrag(!0),bt(this._dragStartTarget,nb,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(r){if(this._enabled&&(this._moved=!1,!Wv(this._element,"leaflet-zoom-anim"))){if(r.touches&&r.touches.length!==1){Oo._dragging===this&&this.finishDrag();return}if(!(Oo._dragging||r.shiftKey||r.which!==1&&r.button!==1&&!r.touches)&&(Oo._dragging=this,this._preventOutline&&Xv(this._element),jv(),fu(),!this._moving)){this.fire("down");var a=r.touches?r.touches[0]:r,u=jT(this._element);this._startPoint=new x(a.clientX,a.clientY),this._startPos=Ua(this._element),this._parentScale=Jv(u);var h=r.type==="mousedown";We(document,h?"mousemove":"touchmove",this._onMove,this),We(document,h?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(r){if(this._enabled){if(r.touches&&r.touches.length>1){this._moved=!0;return}var a=r.touches&&r.touches.length===1?r.touches[0]:r,u=new x(a.clientX,a.clientY)._subtract(this._startPoint);!u.x&&!u.y||Math.abs(u.x)+Math.abs(u.y)<this.options.clickTolerance||(u.x/=this._parentScale.x,u.y/=this._parentScale.y,cn(r),this._moved||(this.fire("dragstart"),this._moved=!0,qe(document.body,"leaflet-dragging"),this._lastTarget=r.target||r.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),qe(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(u),this._moving=!0,this._lastEvent=r,this._updatePosition())}},_updatePosition:function(){var r={originalEvent:this._lastEvent};this.fire("predrag",r),Zt(this._element,this._newPos),this.fire("drag",r)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(r){Ft(document.body,"leaflet-dragging"),this._lastTarget&&(Ft(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),bt(document,"mousemove touchmove",this._onMove,this),bt(document,"mouseup touchend touchcancel",this._onUp,this),qv(),du();var a=this._moved&&this._moving;this._moving=!1,Oo._dragging=!1,a&&this.fire("dragend",{noInertia:r,distance:this._newPos.distanceTo(this._startPos)})}});function rb(r,a,u){var h,m=[1,4,2,8],S,D,$,Z,se,ye,Fe,Qe;for(S=0,ye=r.length;S<ye;S++)r[S]._code=Wa(r[S],a);for($=0;$<4;$++){for(Fe=m[$],h=[],S=0,ye=r.length,D=ye-1;S<ye;D=S++)Z=r[S],se=r[D],Z._code&Fe?se._code&Fe||(Qe=sh(se,Z,Fe,a,u),Qe._code=Wa(Qe,a),h.push(Qe)):(se._code&Fe&&(Qe=sh(se,Z,Fe,a,u),Qe._code=Wa(Qe,a),h.push(Qe)),h.push(Z));r=h}return r}function ib(r,a){var u,h,m,S,D,$,Z,se,ye;if(!r||r.length===0)throw new Error("latlngs not passed");sr(r)||(console.warn("latlngs are not flat! Only the first ring will be used"),r=r[0]);var Fe=ie([0,0]),Qe=k(r),Cn=Qe.getNorthWest().distanceTo(Qe.getSouthWest())*Qe.getNorthEast().distanceTo(Qe.getNorthWest());Cn<1700&&(Fe=ag(r));var tn=r.length,lr=[];for(u=0;u<tn;u++){var Ln=ie(r[u]);lr.push(a.project(ie([Ln.lat-Fe.lat,Ln.lng-Fe.lng])))}for($=Z=se=0,u=0,h=tn-1;u<tn;h=u++)m=lr[u],S=lr[h],D=m.y*S.x-S.y*m.x,Z+=(m.x+S.x)*D,se+=(m.y+S.y)*D,$+=D*3;$===0?ye=lr[0]:ye=[Z/$,se/$];var wl=a.unproject(re(ye));return ie([wl.lat+Fe.lat,wl.lng+Fe.lng])}function ag(r){for(var a=0,u=0,h=0,m=0;m<r.length;m++){var S=ie(r[m]);a+=S.lat,u+=S.lng,h++}return ie([a/h,u/h])}var nY={__proto__:null,clipPolygon:rb,polygonCenter:ib,centroid:ag};function ob(r,a){if(!a||!r.length)return r.slice();var u=a*a;return r=oY(r,u),r=iY(r,u),r}function ab(r,a,u){return Math.sqrt(mu(r,a,u,!0))}function rY(r,a,u){return mu(r,a,u)}function iY(r,a){var u=r.length,h=typeof Uint8Array<"u"?Uint8Array:Array,m=new h(u);m[0]=m[u-1]=1,sg(r,m,a,0,u-1);var S,D=[];for(S=0;S<u;S++)m[S]&&D.push(r[S]);return D}function sg(r,a,u,h,m){var S=0,D,$,Z;for($=h+1;$<=m-1;$++)Z=mu(r[$],r[h],r[m],!0),Z>S&&(D=$,S=Z);S>u&&(a[D]=1,sg(r,a,u,h,D),sg(r,a,u,D,m))}function oY(r,a){for(var u=[r[0]],h=1,m=0,S=r.length;h<S;h++)aY(r[h],r[m])>a&&(u.push(r[h]),m=h);return m<S-1&&u.push(r[S-1]),u}var sb;function lb(r,a,u,h,m){var S=h?sb:Wa(r,u),D=Wa(a,u),$,Z,se;for(sb=D;;){if(!(S|D))return[r,a];if(S&D)return!1;$=S||D,Z=sh(r,a,$,u,m),se=Wa(Z,u),$===S?(r=Z,S=se):(a=Z,D=se)}}function sh(r,a,u,h,m){var S=a.x-r.x,D=a.y-r.y,$=h.min,Z=h.max,se,ye;return u&8?(se=r.x+S*(Z.y-r.y)/D,ye=Z.y):u&4?(se=r.x+S*($.y-r.y)/D,ye=$.y):u&2?(se=Z.x,ye=r.y+D*(Z.x-r.x)/S):u&1&&(se=$.x,ye=r.y+D*($.x-r.x)/S),new x(se,ye,m)}function Wa(r,a){var u=0;return r.x<a.min.x?u|=1:r.x>a.max.x&&(u|=2),r.y<a.min.y?u|=4:r.y>a.max.y&&(u|=8),u}function aY(r,a){var u=a.x-r.x,h=a.y-r.y;return u*u+h*h}function mu(r,a,u,h){var m=a.x,S=a.y,D=u.x-m,$=u.y-S,Z=D*D+$*$,se;return Z>0&&(se=((r.x-m)*D+(r.y-S)*$)/Z,se>1?(m=u.x,S=u.y):se>0&&(m+=D*se,S+=$*se)),D=r.x-m,$=r.y-S,h?D*D+$*$:new x(m,S)}function sr(r){return!M(r[0])||typeof r[0][0]!="object"&&typeof r[0][0]<"u"}function cb(r){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),sr(r)}function ub(r,a){var u,h,m,S,D,$,Z,se;if(!r||r.length===0)throw new Error("latlngs not passed");sr(r)||(console.warn("latlngs are not flat! Only the first ring will be used"),r=r[0]);var ye=ie([0,0]),Fe=k(r),Qe=Fe.getNorthWest().distanceTo(Fe.getSouthWest())*Fe.getNorthEast().distanceTo(Fe.getNorthWest());Qe<1700&&(ye=ag(r));var Cn=r.length,tn=[];for(u=0;u<Cn;u++){var lr=ie(r[u]);tn.push(a.project(ie([lr.lat-ye.lat,lr.lng-ye.lng])))}for(u=0,h=0;u<Cn-1;u++)h+=tn[u].distanceTo(tn[u+1])/2;if(h===0)se=tn[0];else for(u=0,S=0;u<Cn-1;u++)if(D=tn[u],$=tn[u+1],m=D.distanceTo($),S+=m,S>h){Z=(S-h)/m,se=[$.x-Z*($.x-D.x),$.y-Z*($.y-D.y)];break}var Ln=a.unproject(re(se));return ie([Ln.lat+ye.lat,Ln.lng+ye.lng])}var sY={__proto__:null,simplify:ob,pointToSegmentDistance:ab,closestPointOnSegment:rY,clipSegment:lb,_getEdgeIntersection:sh,_getBitCode:Wa,_sqClosestPointOnSegment:mu,isFlat:sr,_flat:cb,polylineCenter:ub},lg={project:function(r){return new x(r.lng,r.lat)},unproject:function(r){return new H(r.y,r.x)},bounds:new _e([-180,-90],[180,90])},cg={R:6378137,R_MINOR:6356752314245179e-9,bounds:new _e([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(r){var a=Math.PI/180,u=this.R,h=r.lat*a,m=this.R_MINOR/u,S=Math.sqrt(1-m*m),D=S*Math.sin(h),$=Math.tan(Math.PI/4-h/2)/Math.pow((1-D)/(1+D),S/2);return h=-u*Math.log(Math.max($,1e-10)),new x(r.lng*a*u,h)},unproject:function(r){for(var a=180/Math.PI,u=this.R,h=this.R_MINOR/u,m=Math.sqrt(1-h*h),S=Math.exp(-r.y/u),D=Math.PI/2-2*Math.atan(S),$=0,Z=.1,se;$<15&&Math.abs(Z)>1e-7;$++)se=m*Math.sin(D),se=Math.pow((1-se)/(1+se),m/2),Z=Math.PI/2-2*Math.atan(S*se)-D,D+=Z;return new H(D*a,r.x*a/u)}},lY={__proto__:null,LonLat:lg,Mercator:cg,SphericalMercator:fe},cY=o({},X,{code:"EPSG:3395",projection:cg,transformation:function(){var r=.5/(Math.PI*cg.R);return Ge(r,.5,-r,.5)}()}),fb=o({},X,{code:"EPSG:4326",projection:lg,transformation:Ge(1/180,1,-1/180,.5)}),uY=o({},O,{projection:lg,transformation:Ge(1,0,-1,0),scale:function(r){return Math.pow(2,r)},zoom:function(r){return Math.log(r)/Math.LN2},distance:function(r,a){var u=a.lng-r.lng,h=a.lat-r.lat;return Math.sqrt(u*u+h*h)},infinite:!0});O.Earth=X,O.EPSG3395=cY,O.EPSG3857=we,O.EPSG900913=be,O.EPSG4326=fb,O.Simple=uY;var kr=W.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(r){return r.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(r){return r&&r.removeLayer(this),this},getPane:function(r){return this._map.getPane(r?this.options[r]||r:this.options.pane)},addInteractiveTarget:function(r){return this._map._targets[d(r)]=this,this},removeInteractiveTarget:function(r){return delete this._map._targets[d(r)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(r){var a=r.target;if(a.hasLayer(this)){if(this._map=a,this._zoomAnimated=a._zoomAnimated,this.getEvents){var u=this.getEvents();a.on(u,this),this.once("remove",function(){a.off(u,this)},this)}this.onAdd(a),this.fire("add"),a.fire("layeradd",{layer:this})}}});st.include({addLayer:function(r){if(!r._layerAdd)throw new Error("The provided object is not a Layer.");var a=d(r);return this._layers[a]?this:(this._layers[a]=r,r._mapToAdd=this,r.beforeAdd&&r.beforeAdd(this),this.whenReady(r._layerAdd,r),this)},removeLayer:function(r){var a=d(r);return this._layers[a]?(this._loaded&&r.onRemove(this),delete this._layers[a],this._loaded&&(this.fire("layerremove",{layer:r}),r.fire("remove")),r._map=r._mapToAdd=null,this):this},hasLayer:function(r){return d(r)in this._layers},eachLayer:function(r,a){for(var u in this._layers)r.call(a,this._layers[u]);return this},_addLayers:function(r){r=r?M(r)?r:[r]:[];for(var a=0,u=r.length;a<u;a++)this.addLayer(r[a])},_addZoomLimit:function(r){(!isNaN(r.options.maxZoom)||!isNaN(r.options.minZoom))&&(this._zoomBoundLayers[d(r)]=r,this._updateZoomLevels())},_removeZoomLimit:function(r){var a=d(r);this._zoomBoundLayers[a]&&(delete this._zoomBoundLayers[a],this._updateZoomLevels())},_updateZoomLevels:function(){var r=1/0,a=-1/0,u=this._getZoomSpan();for(var h in this._zoomBoundLayers){var m=this._zoomBoundLayers[h].options;r=m.minZoom===void 0?r:Math.min(r,m.minZoom),a=m.maxZoom===void 0?a:Math.max(a,m.maxZoom)}this._layersMaxZoom=a===-1/0?void 0:a,this._layersMinZoom=r===1/0?void 0:r,u!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var ml=kr.extend({initialize:function(r,a){w(this,a),this._layers={};var u,h;if(r)for(u=0,h=r.length;u<h;u++)this.addLayer(r[u])},addLayer:function(r){var a=this.getLayerId(r);return this._layers[a]=r,this._map&&this._map.addLayer(r),this},removeLayer:function(r){var a=r in this._layers?r:this.getLayerId(r);return this._map&&this._layers[a]&&this._map.removeLayer(this._layers[a]),delete this._layers[a],this},hasLayer:function(r){var a=typeof r=="number"?r:this.getLayerId(r);return a in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(r){var a=Array.prototype.slice.call(arguments,1),u,h;for(u in this._layers)h=this._layers[u],h[r]&&h[r].apply(h,a);return this},onAdd:function(r){this.eachLayer(r.addLayer,r)},onRemove:function(r){this.eachLayer(r.removeLayer,r)},eachLayer:function(r,a){for(var u in this._layers)r.call(a,this._layers[u]);return this},getLayer:function(r){return this._layers[r]},getLayers:function(){var r=[];return this.eachLayer(r.push,r),r},setZIndex:function(r){return this.invoke("setZIndex",r)},getLayerId:function(r){return d(r)}}),fY=function(r,a){return new ml(r,a)},Bi=ml.extend({addLayer:function(r){return this.hasLayer(r)?this:(r.addEventParent(this),ml.prototype.addLayer.call(this,r),this.fire("layeradd",{layer:r}))},removeLayer:function(r){return this.hasLayer(r)?(r in this._layers&&(r=this._layers[r]),r.removeEventParent(this),ml.prototype.removeLayer.call(this,r),this.fire("layerremove",{layer:r})):this},setStyle:function(r){return this.invoke("setStyle",r)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var r=new U;for(var a in this._layers){var u=this._layers[a];r.extend(u.getBounds?u.getBounds():u.getLatLng())}return r}}),dY=function(r,a){return new Bi(r,a)},vl=P.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(r){w(this,r)},createIcon:function(r){return this._createIcon("icon",r)},createShadow:function(r){return this._createIcon("shadow",r)},_createIcon:function(r,a){var u=this._getIconUrl(r);if(!u){if(r==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var h=this._createImg(u,a&&a.tagName==="IMG"?a:null);return this._setIconStyles(h,r),(this.options.crossOrigin||this.options.crossOrigin==="")&&(h.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),h},_setIconStyles:function(r,a){var u=this.options,h=u[a+"Size"];typeof h=="number"&&(h=[h,h]);var m=re(h),S=re(a==="shadow"&&u.shadowAnchor||u.iconAnchor||m&&m.divideBy(2,!0));r.className="leaflet-marker-"+a+" "+(u.className||""),S&&(r.style.marginLeft=-S.x+"px",r.style.marginTop=-S.y+"px"),m&&(r.style.width=m.x+"px",r.style.height=m.y+"px")},_createImg:function(r,a){return a=a||document.createElement("img"),a.src=r,a},_getIconUrl:function(r){return xe.retina&&this.options[r+"RetinaUrl"]||this.options[r+"Url"]}});function hY(r){return new vl(r)}var vu=vl.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(r){return typeof vu.imagePath!="string"&&(vu.imagePath=this._detectIconPath()),(this.options.imagePath||vu.imagePath)+vl.prototype._getIconUrl.call(this,r)},_stripUrl:function(r){var a=function(u,h,m){var S=h.exec(u);return S&&S[m]};return r=a(r,/^url\((['"])?(.+)\1\)$/,2),r&&a(r,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var r=ht("div","leaflet-default-icon-path",document.body),a=uu(r,"background-image")||uu(r,"backgroundImage");if(document.body.removeChild(r),a=this._stripUrl(a),a)return a;var u=document.querySelector('link[href$="leaflet.css"]');return u?u.href.substring(0,u.href.length-11-1):""}}),db=ei.extend({initialize:function(r){this._marker=r},addHooks:function(){var r=this._marker._icon;this._draggable||(this._draggable=new Oo(r,r,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),qe(r,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&Ft(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(r){var a=this._marker,u=a._map,h=this._marker.options.autoPanSpeed,m=this._marker.options.autoPanPadding,S=Ua(a._icon),D=u.getPixelBounds(),$=u.getPixelOrigin(),Z=N(D.min._subtract($).add(m),D.max._subtract($).subtract(m));if(!Z.contains(S)){var se=re((Math.max(Z.max.x,S.x)-Z.max.x)/(D.max.x-Z.max.x)-(Math.min(Z.min.x,S.x)-Z.min.x)/(D.min.x-Z.min.x),(Math.max(Z.max.y,S.y)-Z.max.y)/(D.max.y-Z.max.y)-(Math.min(Z.min.y,S.y)-Z.min.y)/(D.min.y-Z.min.y)).multiplyBy(h);u.panBy(se,{animate:!1}),this._draggable._newPos._add(se),this._draggable._startPos._add(se),Zt(a._icon,this._draggable._newPos),this._onDrag(r),this._panRequest=B(this._adjustPan.bind(this,r))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(r){this._marker.options.autoPan&&(ae(this._panRequest),this._panRequest=B(this._adjustPan.bind(this,r)))},_onDrag:function(r){var a=this._marker,u=a._shadow,h=Ua(a._icon),m=a._map.layerPointToLatLng(h);u&&Zt(u,h),a._latlng=m,r.latlng=m,r.oldLatLng=this._oldLatLng,a.fire("move",r).fire("drag",r)},_onDragEnd:function(r){ae(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",r)}}),lh=kr.extend({options:{icon:new vu,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(r,a){w(this,a),this._latlng=ie(r)},onAdd:function(r){this._zoomAnimated=this._zoomAnimated&&r.options.markerZoomAnimation,this._zoomAnimated&&r.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(r){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&r.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(r){var a=this._latlng;return this._latlng=ie(r),this.update(),this.fire("move",{oldLatLng:a,latlng:this._latlng})},setZIndexOffset:function(r){return this.options.zIndexOffset=r,this.update()},getIcon:function(){return this.options.icon},setIcon:function(r){return this.options.icon=r,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var r=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(r)}return this},_initIcon:function(){var r=this.options,a="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),u=r.icon.createIcon(this._icon),h=!1;u!==this._icon&&(this._icon&&this._removeIcon(),h=!0,r.title&&(u.title=r.title),u.tagName==="IMG"&&(u.alt=r.alt||"")),qe(u,a),r.keyboard&&(u.tabIndex="0",u.setAttribute("role","button")),this._icon=u,r.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&We(u,"focus",this._panOnFocus,this);var m=r.icon.createShadow(this._shadow),S=!1;m!==this._shadow&&(this._removeShadow(),S=!0),m&&(qe(m,a),m.alt=""),this._shadow=m,r.opacity<1&&this._updateOpacity(),h&&this.getPane().appendChild(this._icon),this._initInteraction(),m&&S&&this.getPane(r.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&bt(this._icon,"focus",this._panOnFocus,this),Rt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Rt(this._shadow),this._shadow=null},_setPos:function(r){this._icon&&Zt(this._icon,r),this._shadow&&Zt(this._shadow,r),this._zIndex=r.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(r){this._icon&&(this._icon.style.zIndex=this._zIndex+r)},_animateZoom:function(r){var a=this._map._latLngToNewLayerPoint(this._latlng,r.zoom,r.center).round();this._setPos(a)},_initInteraction:function(){if(this.options.interactive&&(qe(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),db)){var r=this.options.draggable;this.dragging&&(r=this.dragging.enabled(),this.dragging.disable()),this.dragging=new db(this),r&&this.dragging.enable()}},setOpacity:function(r){return this.options.opacity=r,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var r=this.options.opacity;this._icon&&ar(this._icon,r),this._shadow&&ar(this._shadow,r)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var r=this._map;if(r){var a=this.options.icon.options,u=a.iconSize?re(a.iconSize):re(0,0),h=a.iconAnchor?re(a.iconAnchor):re(0,0);r.panInside(this._latlng,{paddingTopLeft:h,paddingBottomRight:u.subtract(h)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function pY(r,a){return new lh(r,a)}var Io=kr.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(r){this._renderer=r.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(r){return w(this,r),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&r&&Object.prototype.hasOwnProperty.call(r,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),ch=Io.extend({options:{fill:!0,radius:10},initialize:function(r,a){w(this,a),this._latlng=ie(r),this._radius=this.options.radius},setLatLng:function(r){var a=this._latlng;return this._latlng=ie(r),this.redraw(),this.fire("move",{oldLatLng:a,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(r){return this.options.radius=this._radius=r,this.redraw()},getRadius:function(){return this._radius},setStyle:function(r){var a=r&&r.radius||this._radius;return Io.prototype.setStyle.call(this,r),this.setRadius(a),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var r=this._radius,a=this._radiusY||r,u=this._clickTolerance(),h=[r+u,a+u];this._pxBounds=new _e(this._point.subtract(h),this._point.add(h))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(r){return r.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function _Y(r,a){return new ch(r,a)}var ug=ch.extend({initialize:function(r,a,u){if(typeof a=="number"&&(a=o({},u,{radius:a})),w(this,a),this._latlng=ie(r),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(r){return this._mRadius=r,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var r=[this._radius,this._radiusY||this._radius];return new U(this._map.layerPointToLatLng(this._point.subtract(r)),this._map.layerPointToLatLng(this._point.add(r)))},setStyle:Io.prototype.setStyle,_project:function(){var r=this._latlng.lng,a=this._latlng.lat,u=this._map,h=u.options.crs;if(h.distance===X.distance){var m=Math.PI/180,S=this._mRadius/X.R/m,D=u.project([a+S,r]),$=u.project([a-S,r]),Z=D.add($).divideBy(2),se=u.unproject(Z).lat,ye=Math.acos((Math.cos(S*m)-Math.sin(a*m)*Math.sin(se*m))/(Math.cos(a*m)*Math.cos(se*m)))/m;(isNaN(ye)||ye===0)&&(ye=S/Math.cos(Math.PI/180*a)),this._point=Z.subtract(u.getPixelOrigin()),this._radius=isNaN(ye)?0:Z.x-u.project([se,r-ye]).x,this._radiusY=Z.y-D.y}else{var Fe=h.unproject(h.project(this._latlng).subtract([this._mRadius,0]));this._point=u.latLngToLayerPoint(this._latlng),this._radius=this._point.x-u.latLngToLayerPoint(Fe).x}this._updateBounds()}});function mY(r,a,u){return new ug(r,a,u)}var Vi=Io.extend({options:{smoothFactor:1,noClip:!1},initialize:function(r,a){w(this,a),this._setLatLngs(r)},getLatLngs:function(){return this._latlngs},setLatLngs:function(r){return this._setLatLngs(r),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(r){for(var a=1/0,u=null,h=mu,m,S,D=0,$=this._parts.length;D<$;D++)for(var Z=this._parts[D],se=1,ye=Z.length;se<ye;se++){m=Z[se-1],S=Z[se];var Fe=h(r,m,S,!0);Fe<a&&(a=Fe,u=h(r,m,S))}return u&&(u.distance=Math.sqrt(a)),u},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return ub(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(r,a){return a=a||this._defaultShape(),r=ie(r),a.push(r),this._bounds.extend(r),this.redraw()},_setLatLngs:function(r){this._bounds=new U,this._latlngs=this._convertLatLngs(r)},_defaultShape:function(){return sr(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(r){for(var a=[],u=sr(r),h=0,m=r.length;h<m;h++)u?(a[h]=ie(r[h]),this._bounds.extend(a[h])):a[h]=this._convertLatLngs(r[h]);return a},_project:function(){var r=new _e;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,r),this._bounds.isValid()&&r.isValid()&&(this._rawPxBounds=r,this._updateBounds())},_updateBounds:function(){var r=this._clickTolerance(),a=new x(r,r);this._rawPxBounds&&(this._pxBounds=new _e([this._rawPxBounds.min.subtract(a),this._rawPxBounds.max.add(a)]))},_projectLatlngs:function(r,a,u){var h=r[0]instanceof H,m=r.length,S,D;if(h){for(D=[],S=0;S<m;S++)D[S]=this._map.latLngToLayerPoint(r[S]),u.extend(D[S]);a.push(D)}else for(S=0;S<m;S++)this._projectLatlngs(r[S],a,u)},_clipPoints:function(){var r=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(r))){if(this.options.noClip){this._parts=this._rings;return}var a=this._parts,u,h,m,S,D,$,Z;for(u=0,m=0,S=this._rings.length;u<S;u++)for(Z=this._rings[u],h=0,D=Z.length;h<D-1;h++)$=lb(Z[h],Z[h+1],r,h,!0),$&&(a[m]=a[m]||[],a[m].push($[0]),($[1]!==Z[h+1]||h===D-2)&&(a[m].push($[1]),m++))}},_simplifyPoints:function(){for(var r=this._parts,a=this.options.smoothFactor,u=0,h=r.length;u<h;u++)r[u]=ob(r[u],a)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(r,a){var u,h,m,S,D,$,Z=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(r))return!1;for(u=0,S=this._parts.length;u<S;u++)for($=this._parts[u],h=0,D=$.length,m=D-1;h<D;m=h++)if(!(!a&&h===0)&&ab(r,$[m],$[h])<=Z)return!0;return!1}});function vY(r,a){return new Vi(r,a)}Vi._flat=cb;var gl=Vi.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return ib(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(r){var a=Vi.prototype._convertLatLngs.call(this,r),u=a.length;return u>=2&&a[0]instanceof H&&a[0].equals(a[u-1])&&a.pop(),a},_setLatLngs:function(r){Vi.prototype._setLatLngs.call(this,r),sr(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return sr(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var r=this._renderer._bounds,a=this.options.weight,u=new x(a,a);if(r=new _e(r.min.subtract(u),r.max.add(u)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(r))){if(this.options.noClip){this._parts=this._rings;return}for(var h=0,m=this._rings.length,S;h<m;h++)S=rb(this._rings[h],r,!0),S.length&&this._parts.push(S)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(r){var a=!1,u,h,m,S,D,$,Z,se;if(!this._pxBounds||!this._pxBounds.contains(r))return!1;for(S=0,Z=this._parts.length;S<Z;S++)for(u=this._parts[S],D=0,se=u.length,$=se-1;D<se;$=D++)h=u[D],m=u[$],h.y>r.y!=m.y>r.y&&r.x<(m.x-h.x)*(r.y-h.y)/(m.y-h.y)+h.x&&(a=!a);return a||Vi.prototype._containsPoint.call(this,r,!0)}});function gY(r,a){return new gl(r,a)}var Fi=Bi.extend({initialize:function(r,a){w(this,a),this._layers={},r&&this.addData(r)},addData:function(r){var a=M(r)?r:r.features,u,h,m;if(a){for(u=0,h=a.length;u<h;u++)m=a[u],(m.geometries||m.geometry||m.features||m.coordinates)&&this.addData(m);return this}var S=this.options;if(S.filter&&!S.filter(r))return this;var D=uh(r,S);return D?(D.feature=hh(r),D.defaultOptions=D.options,this.resetStyle(D),S.onEachFeature&&S.onEachFeature(r,D),this.addLayer(D)):this},resetStyle:function(r){return r===void 0?this.eachLayer(this.resetStyle,this):(r.options=o({},r.defaultOptions),this._setLayerStyle(r,this.options.style),this)},setStyle:function(r){return this.eachLayer(function(a){this._setLayerStyle(a,r)},this)},_setLayerStyle:function(r,a){r.setStyle&&(typeof a=="function"&&(a=a(r.feature)),r.setStyle(a))}});function uh(r,a){var u=r.type==="Feature"?r.geometry:r,h=u?u.coordinates:null,m=[],S=a&&a.pointToLayer,D=a&&a.coordsToLatLng||fg,$,Z,se,ye;if(!h&&!u)return null;switch(u.type){case"Point":return $=D(h),hb(S,r,$,a);case"MultiPoint":for(se=0,ye=h.length;se<ye;se++)$=D(h[se]),m.push(hb(S,r,$,a));return new Bi(m);case"LineString":case"MultiLineString":return Z=fh(h,u.type==="LineString"?0:1,D),new Vi(Z,a);case"Polygon":case"MultiPolygon":return Z=fh(h,u.type==="Polygon"?1:2,D),new gl(Z,a);case"GeometryCollection":for(se=0,ye=u.geometries.length;se<ye;se++){var Fe=uh({geometry:u.geometries[se],type:"Feature",properties:r.properties},a);Fe&&m.push(Fe)}return new Bi(m);case"FeatureCollection":for(se=0,ye=u.features.length;se<ye;se++){var Qe=uh(u.features[se],a);Qe&&m.push(Qe)}return new Bi(m);default:throw new Error("Invalid GeoJSON object.")}}function hb(r,a,u,h){return r?r(a,u):new lh(u,h&&h.markersInheritOptions&&h)}function fg(r){return new H(r[1],r[0],r[2])}function fh(r,a,u){for(var h=[],m=0,S=r.length,D;m<S;m++)D=a?fh(r[m],a-1,u):(u||fg)(r[m]),h.push(D);return h}function dg(r,a){return r=ie(r),r.alt!==void 0?[y(r.lng,a),y(r.lat,a),y(r.alt,a)]:[y(r.lng,a),y(r.lat,a)]}function dh(r,a,u,h){for(var m=[],S=0,D=r.length;S<D;S++)m.push(a?dh(r[S],sr(r[S])?0:a-1,u,h):dg(r[S],h));return!a&&u&&m.length>0&&m.push(m[0].slice()),m}function yl(r,a){return r.feature?o({},r.feature,{geometry:a}):hh(a)}function hh(r){return r.type==="Feature"||r.type==="FeatureCollection"?r:{type:"Feature",properties:{},geometry:r}}var hg={toGeoJSON:function(r){return yl(this,{type:"Point",coordinates:dg(this.getLatLng(),r)})}};lh.include(hg),ug.include(hg),ch.include(hg),Vi.include({toGeoJSON:function(r){var a=!sr(this._latlngs),u=dh(this._latlngs,a?1:0,!1,r);return yl(this,{type:(a?"Multi":"")+"LineString",coordinates:u})}}),gl.include({toGeoJSON:function(r){var a=!sr(this._latlngs),u=a&&!sr(this._latlngs[0]),h=dh(this._latlngs,u?2:a?1:0,!0,r);return a||(h=[h]),yl(this,{type:(u?"Multi":"")+"Polygon",coordinates:h})}}),ml.include({toMultiPoint:function(r){var a=[];return this.eachLayer(function(u){a.push(u.toGeoJSON(r).geometry.coordinates)}),yl(this,{type:"MultiPoint",coordinates:a})},toGeoJSON:function(r){var a=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(a==="MultiPoint")return this.toMultiPoint(r);var u=a==="GeometryCollection",h=[];return this.eachLayer(function(m){if(m.toGeoJSON){var S=m.toGeoJSON(r);if(u)h.push(S.geometry);else{var D=hh(S);D.type==="FeatureCollection"?h.push.apply(h,D.features):h.push(D)}}}),u?yl(this,{geometries:h,type:"GeometryCollection"}):{type:"FeatureCollection",features:h}}});function pb(r,a){return new Fi(r,a)}var yY=pb,ph=kr.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(r,a,u){this._url=r,this._bounds=k(a),w(this,u)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(qe(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Rt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(r){return this.options.opacity=r,this._image&&this._updateOpacity(),this},setStyle:function(r){return r.opacity&&this.setOpacity(r.opacity),this},bringToFront:function(){return this._map&&pl(this._image),this},bringToBack:function(){return this._map&&_l(this._image),this},setUrl:function(r){return this._url=r,this._image&&(this._image.src=r),this},setBounds:function(r){return this._bounds=k(r),this._map&&this._reset(),this},getEvents:function(){var r={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(r.zoomanim=this._animateZoom),r},setZIndex:function(r){return this.options.zIndex=r,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var r=this._url.tagName==="IMG",a=this._image=r?this._url:ht("img");if(qe(a,"leaflet-image-layer"),this._zoomAnimated&&qe(a,"leaflet-zoom-animated"),this.options.className&&qe(a,this.options.className),a.onselectstart=v,a.onmousemove=v,a.onload=c(this.fire,this,"load"),a.onerror=c(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(a.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),r){this._url=a.src;return}a.src=this._url,a.alt=this.options.alt},_animateZoom:function(r){var a=this._map.getZoomScale(r.zoom),u=this._map._latLngBoundsToNewLayerBounds(this._bounds,r.zoom,r.center).min;$a(this._image,u,a)},_reset:function(){var r=this._image,a=new _e(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),u=a.getSize();Zt(r,a.min),r.style.width=u.x+"px",r.style.height=u.y+"px"},_updateOpacity:function(){ar(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var r=this.options.errorOverlayUrl;r&&this._url!==r&&(this._url=r,this._image.src=r)},getCenter:function(){return this._bounds.getCenter()}}),SY=function(r,a,u){return new ph(r,a,u)},_b=ph.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var r=this._url.tagName==="VIDEO",a=this._image=r?this._url:ht("video");if(qe(a,"leaflet-image-layer"),this._zoomAnimated&&qe(a,"leaflet-zoom-animated"),this.options.className&&qe(a,this.options.className),a.onselectstart=v,a.onmousemove=v,a.onloadeddata=c(this.fire,this,"load"),r){for(var u=a.getElementsByTagName("source"),h=[],m=0;m<u.length;m++)h.push(u[m].src);this._url=u.length>0?h:[a.src];return}M(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(a.style,"objectFit")&&(a.style.objectFit="fill"),a.autoplay=!!this.options.autoplay,a.loop=!!this.options.loop,a.muted=!!this.options.muted,a.playsInline=!!this.options.playsInline;for(var S=0;S<this._url.length;S++){var D=ht("source");D.src=this._url[S],a.appendChild(D)}}});function wY(r,a,u){return new _b(r,a,u)}var mb=ph.extend({_initImage:function(){var r=this._image=this._url;qe(r,"leaflet-image-layer"),this._zoomAnimated&&qe(r,"leaflet-zoom-animated"),this.options.className&&qe(r,this.options.className),r.onselectstart=v,r.onmousemove=v}});function EY(r,a,u){return new mb(r,a,u)}var ti=kr.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(r,a){r&&(r instanceof H||M(r))?(this._latlng=ie(r),w(this,a)):(w(this,r),this._source=a),this.options.content&&(this._content=this.options.content)},openOn:function(r){return r=arguments.length?r:this._source._map,r.hasLayer(this)||r.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(r){return this._map?this.close():(arguments.length?this._source=r:r=this._source,this._prepareOpen(),this.openOn(r._map)),this},onAdd:function(r){this._zoomAnimated=r._zoomAnimated,this._container||this._initLayout(),r._fadeAnimated&&ar(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),r._fadeAnimated&&ar(this._container,1),this.bringToFront(),this.options.interactive&&(qe(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(r){r._fadeAnimated?(ar(this._container,0),this._removeTimeout=setTimeout(c(Rt,void 0,this._container),200)):Rt(this._container),this.options.interactive&&(Ft(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(r){return this._latlng=ie(r),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(r){return this._content=r,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var r={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(r.zoomanim=this._animateZoom),r},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&pl(this._container),this},bringToBack:function(){return this._map&&_l(this._container),this},_prepareOpen:function(r){var a=this._source;if(!a._map)return!1;if(a instanceof Bi){a=null;var u=this._source._layers;for(var h in u)if(u[h]._map){a=u[h];break}if(!a)return!1;this._source=a}if(!r)if(a.getCenter)r=a.getCenter();else if(a.getLatLng)r=a.getLatLng();else if(a.getBounds)r=a.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(r),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var r=this._contentNode,a=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof a=="string")r.innerHTML=a;else{for(;r.hasChildNodes();)r.removeChild(r.firstChild);r.appendChild(a)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var r=this._map.latLngToLayerPoint(this._latlng),a=re(this.options.offset),u=this._getAnchor();this._zoomAnimated?Zt(this._container,r.add(u)):a=a.add(r).add(u);var h=this._containerBottom=-a.y,m=this._containerLeft=-Math.round(this._containerWidth/2)+a.x;this._container.style.bottom=h+"px",this._container.style.left=m+"px"}},_getAnchor:function(){return[0,0]}});st.include({_initOverlay:function(r,a,u,h){var m=a;return m instanceof r||(m=new r(h).setContent(a)),u&&m.setLatLng(u),m}}),kr.include({_initOverlay:function(r,a,u,h){var m=u;return m instanceof r?(w(m,h),m._source=this):(m=a&&!h?a:new r(h,this),m.setContent(u)),m}});var _h=ti.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(r){return r=arguments.length?r:this._source._map,!r.hasLayer(this)&&r._popup&&r._popup.options.autoClose&&r.removeLayer(r._popup),r._popup=this,ti.prototype.openOn.call(this,r)},onAdd:function(r){ti.prototype.onAdd.call(this,r),r.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Io||this._source.on("preclick",za))},onRemove:function(r){ti.prototype.onRemove.call(this,r),r.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Io||this._source.off("preclick",za))},getEvents:function(){var r=ti.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(r.preclick=this.close),this.options.keepInView&&(r.moveend=this._adjustPan),r},_initLayout:function(){var r="leaflet-popup",a=this._container=ht("div",r+" "+(this.options.className||"")+" leaflet-zoom-animated"),u=this._wrapper=ht("div",r+"-content-wrapper",a);if(this._contentNode=ht("div",r+"-content",u),pu(a),ng(this._contentNode),We(a,"contextmenu",za),this._tipContainer=ht("div",r+"-tip-container",a),this._tip=ht("div",r+"-tip",this._tipContainer),this.options.closeButton){var h=this._closeButton=ht("a",r+"-close-button",a);h.setAttribute("role","button"),h.setAttribute("aria-label","Close popup"),h.href="#close",h.innerHTML='<span aria-hidden="true">&#215;</span>',We(h,"click",function(m){cn(m),this.close()},this)}},_updateLayout:function(){var r=this._contentNode,a=r.style;a.width="",a.whiteSpace="nowrap";var u=r.offsetWidth;u=Math.min(u,this.options.maxWidth),u=Math.max(u,this.options.minWidth),a.width=u+1+"px",a.whiteSpace="",a.height="";var h=r.offsetHeight,m=this.options.maxHeight,S="leaflet-popup-scrolled";m&&h>m?(a.height=m+"px",qe(r,S)):Ft(r,S),this._containerWidth=this._container.offsetWidth},_animateZoom:function(r){var a=this._map._latLngToNewLayerPoint(this._latlng,r.zoom,r.center),u=this._getAnchor();Zt(this._container,a.add(u))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var r=this._map,a=parseInt(uu(this._container,"marginBottom"),10)||0,u=this._container.offsetHeight+a,h=this._containerWidth,m=new x(this._containerLeft,-u-this._containerBottom);m._add(Ua(this._container));var S=r.layerPointToContainerPoint(m),D=re(this.options.autoPanPadding),$=re(this.options.autoPanPaddingTopLeft||D),Z=re(this.options.autoPanPaddingBottomRight||D),se=r.getSize(),ye=0,Fe=0;S.x+h+Z.x>se.x&&(ye=S.x+h-se.x+Z.x),S.x-ye-$.x<0&&(ye=S.x-$.x),S.y+u+Z.y>se.y&&(Fe=S.y+u-se.y+Z.y),S.y-Fe-$.y<0&&(Fe=S.y-$.y),(ye||Fe)&&(this.options.keepInView&&(this._autopanning=!0),r.fire("autopanstart").panBy([ye,Fe]))}},_getAnchor:function(){return re(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),TY=function(r,a){return new _h(r,a)};st.mergeOptions({closePopupOnClick:!0}),st.include({openPopup:function(r,a,u){return this._initOverlay(_h,r,a,u).openOn(this),this},closePopup:function(r){return r=arguments.length?r:this._popup,r&&r.close(),this}}),kr.include({bindPopup:function(r,a){return this._popup=this._initOverlay(_h,this._popup,r,a),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(r){return this._popup&&(this instanceof Bi||(this._popup._source=this),this._popup._prepareOpen(r||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(r){return this._popup&&this._popup.setContent(r),this},getPopup:function(){return this._popup},_openPopup:function(r){if(!(!this._popup||!this._map)){Ha(r);var a=r.layer||r.target;if(this._popup._source===a&&!(a instanceof Io)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(r.latlng);return}this._popup._source=a,this.openPopup(r.latlng)}},_movePopup:function(r){this._popup.setLatLng(r.latlng)},_onKeyPress:function(r){r.originalEvent.keyCode===13&&this._openPopup(r)}});var mh=ti.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(r){ti.prototype.onAdd.call(this,r),this.setOpacity(this.options.opacity),r.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(r){ti.prototype.onRemove.call(this,r),r.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var r=ti.prototype.getEvents.call(this);return this.options.permanent||(r.preclick=this.close),r},_initLayout:function(){var r="leaflet-tooltip",a=r+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ht("div",a),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+d(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(r){var a,u,h=this._map,m=this._container,S=h.latLngToContainerPoint(h.getCenter()),D=h.layerPointToContainerPoint(r),$=this.options.direction,Z=m.offsetWidth,se=m.offsetHeight,ye=re(this.options.offset),Fe=this._getAnchor();$==="top"?(a=Z/2,u=se):$==="bottom"?(a=Z/2,u=0):$==="center"?(a=Z/2,u=se/2):$==="right"?(a=0,u=se/2):$==="left"?(a=Z,u=se/2):D.x<S.x?($="right",a=0,u=se/2):($="left",a=Z+(ye.x+Fe.x)*2,u=se/2),r=r.subtract(re(a,u,!0)).add(ye).add(Fe),Ft(m,"leaflet-tooltip-right"),Ft(m,"leaflet-tooltip-left"),Ft(m,"leaflet-tooltip-top"),Ft(m,"leaflet-tooltip-bottom"),qe(m,"leaflet-tooltip-"+$),Zt(m,r)},_updatePosition:function(){var r=this._map.latLngToLayerPoint(this._latlng);this._setPosition(r)},setOpacity:function(r){this.options.opacity=r,this._container&&ar(this._container,r)},_animateZoom:function(r){var a=this._map._latLngToNewLayerPoint(this._latlng,r.zoom,r.center);this._setPosition(a)},_getAnchor:function(){return re(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),bY=function(r,a){return new mh(r,a)};st.include({openTooltip:function(r,a,u){return this._initOverlay(mh,r,a,u).openOn(this),this},closeTooltip:function(r){return r.close(),this}}),kr.include({bindTooltip:function(r,a){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(mh,this._tooltip,r,a),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(r){if(!(!r&&this._tooltipHandlersAdded)){var a=r?"off":"on",u={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?u.add=this._openTooltip:(u.mouseover=this._openTooltip,u.mouseout=this.closeTooltip,u.click=this._openTooltip,this._map?this._addFocusListeners():u.add=this._addFocusListeners),this._tooltip.options.sticky&&(u.mousemove=this._moveTooltip),this[a](u),this._tooltipHandlersAdded=!r}},openTooltip:function(r){return this._tooltip&&(this instanceof Bi||(this._tooltip._source=this),this._tooltip._prepareOpen(r)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(r){return this._tooltip&&this._tooltip.setContent(r),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(r){var a=typeof r.getElement=="function"&&r.getElement();a&&(We(a,"focus",function(){this._tooltip._source=r,this.openTooltip()},this),We(a,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(r){var a=typeof r.getElement=="function"&&r.getElement();a&&a.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(r){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var a=this;this._map.once("moveend",function(){a._openOnceFlag=!1,a._openTooltip(r)});return}this._tooltip._source=r.layer||r.target,this.openTooltip(this._tooltip.options.sticky?r.latlng:void 0)}},_moveTooltip:function(r){var a=r.latlng,u,h;this._tooltip.options.sticky&&r.originalEvent&&(u=this._map.mouseEventToContainerPoint(r.originalEvent),h=this._map.containerPointToLayerPoint(u),a=this._map.layerPointToLatLng(h)),this._tooltip.setLatLng(a)}});var vb=vl.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(r){var a=r&&r.tagName==="DIV"?r:document.createElement("div"),u=this.options;if(u.html instanceof Element?(nh(a),a.appendChild(u.html)):a.innerHTML=u.html!==!1?u.html:"",u.bgPos){var h=re(u.bgPos);a.style.backgroundPosition=-h.x+"px "+-h.y+"px"}return this._setIconStyles(a,"icon"),a},createShadow:function(){return null}});function NY(r){return new vb(r)}vl.Default=vu;var gu=kr.extend({options:{tileSize:256,opacity:1,updateWhenIdle:xe.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(r){w(this,r)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(r){r._addZoomLimit(this)},onRemove:function(r){this._removeAllTiles(),Rt(this._container),r._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(pl(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(_l(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(r){return this.options.opacity=r,this._updateOpacity(),this},setZIndex:function(r){return this.options.zIndex=r,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var r=this._clampZoom(this._map.getZoom());r!==this._tileZoom&&(this._tileZoom=r,this._updateLevels()),this._update()}return this},getEvents:function(){var r={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=p(this._onMoveEnd,this.options.updateInterval,this)),r.move=this._onMove),this._zoomAnimated&&(r.zoomanim=this._animateZoom),r},createTile:function(){return document.createElement("div")},getTileSize:function(){var r=this.options.tileSize;return r instanceof x?r:new x(r,r)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(r){for(var a=this.getPane().children,u=-r(-1/0,1/0),h=0,m=a.length,S;h<m;h++)S=a[h].style.zIndex,a[h]!==this._container&&S&&(u=r(u,+S));isFinite(u)&&(this.options.zIndex=u+r(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!xe.ielt9){ar(this._container,this.options.opacity);var r=+new Date,a=!1,u=!1;for(var h in this._tiles){var m=this._tiles[h];if(!(!m.current||!m.loaded)){var S=Math.min(1,(r-m.loaded)/200);ar(m.el,S),S<1?a=!0:(m.active?u=!0:this._onOpaqueTile(m),m.active=!0)}}u&&!this._noPrune&&this._pruneTiles(),a&&(ae(this._fadeFrame),this._fadeFrame=B(this._updateOpacity,this))}},_onOpaqueTile:v,_initContainer:function(){this._container||(this._container=ht("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var r=this._tileZoom,a=this.options.maxZoom;if(r!==void 0){for(var u in this._levels)u=Number(u),this._levels[u].el.children.length||u===r?(this._levels[u].el.style.zIndex=a-Math.abs(r-u),this._onUpdateLevel(u)):(Rt(this._levels[u].el),this._removeTilesAtZoom(u),this._onRemoveLevel(u),delete this._levels[u]);var h=this._levels[r],m=this._map;return h||(h=this._levels[r]={},h.el=ht("div","leaflet-tile-container leaflet-zoom-animated",this._container),h.el.style.zIndex=a,h.origin=m.project(m.unproject(m.getPixelOrigin()),r).round(),h.zoom=r,this._setZoomTransform(h,m.getCenter(),m.getZoom()),v(h.el.offsetWidth),this._onCreateLevel(h)),this._level=h,h}},_onUpdateLevel:v,_onRemoveLevel:v,_onCreateLevel:v,_pruneTiles:function(){if(this._map){var r,a,u=this._map.getZoom();if(u>this.options.maxZoom||u<this.options.minZoom){this._removeAllTiles();return}for(r in this._tiles)a=this._tiles[r],a.retain=a.current;for(r in this._tiles)if(a=this._tiles[r],a.current&&!a.active){var h=a.coords;this._retainParent(h.x,h.y,h.z,h.z-5)||this._retainChildren(h.x,h.y,h.z,h.z+2)}for(r in this._tiles)this._tiles[r].retain||this._removeTile(r)}},_removeTilesAtZoom:function(r){for(var a in this._tiles)this._tiles[a].coords.z===r&&this._removeTile(a)},_removeAllTiles:function(){for(var r in this._tiles)this._removeTile(r)},_invalidateAll:function(){for(var r in this._levels)Rt(this._levels[r].el),this._onRemoveLevel(Number(r)),delete this._levels[r];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(r,a,u,h){var m=Math.floor(r/2),S=Math.floor(a/2),D=u-1,$=new x(+m,+S);$.z=+D;var Z=this._tileCoordsToKey($),se=this._tiles[Z];return se&&se.active?(se.retain=!0,!0):(se&&se.loaded&&(se.retain=!0),D>h?this._retainParent(m,S,D,h):!1)},_retainChildren:function(r,a,u,h){for(var m=2*r;m<2*r+2;m++)for(var S=2*a;S<2*a+2;S++){var D=new x(m,S);D.z=u+1;var $=this._tileCoordsToKey(D),Z=this._tiles[$];if(Z&&Z.active){Z.retain=!0;continue}else Z&&Z.loaded&&(Z.retain=!0);u+1<h&&this._retainChildren(m,S,u+1,h)}},_resetView:function(r){var a=r&&(r.pinch||r.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),a,a)},_animateZoom:function(r){this._setView(r.center,r.zoom,!0,r.noUpdate)},_clampZoom:function(r){var a=this.options;return a.minNativeZoom!==void 0&&r<a.minNativeZoom?a.minNativeZoom:a.maxNativeZoom!==void 0&&a.maxNativeZoom<r?a.maxNativeZoom:r},_setView:function(r,a,u,h){var m=Math.round(a);this.options.maxZoom!==void 0&&m>this.options.maxZoom||this.options.minZoom!==void 0&&m<this.options.minZoom?m=void 0:m=this._clampZoom(m);var S=this.options.updateWhenZooming&&m!==this._tileZoom;(!h||S)&&(this._tileZoom=m,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),m!==void 0&&this._update(r),u||this._pruneTiles(),this._noPrune=!!u),this._setZoomTransforms(r,a)},_setZoomTransforms:function(r,a){for(var u in this._levels)this._setZoomTransform(this._levels[u],r,a)},_setZoomTransform:function(r,a,u){var h=this._map.getZoomScale(u,r.zoom),m=r.origin.multiplyBy(h).subtract(this._map._getNewPixelOrigin(a,u)).round();xe.any3d?$a(r.el,m,h):Zt(r.el,m)},_resetGrid:function(){var r=this._map,a=r.options.crs,u=this._tileSize=this.getTileSize(),h=this._tileZoom,m=this._map.getPixelWorldBounds(this._tileZoom);m&&(this._globalTileRange=this._pxBoundsToTileRange(m)),this._wrapX=a.wrapLng&&!this.options.noWrap&&[Math.floor(r.project([0,a.wrapLng[0]],h).x/u.x),Math.ceil(r.project([0,a.wrapLng[1]],h).x/u.y)],this._wrapY=a.wrapLat&&!this.options.noWrap&&[Math.floor(r.project([a.wrapLat[0],0],h).y/u.x),Math.ceil(r.project([a.wrapLat[1],0],h).y/u.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(r){var a=this._map,u=a._animatingZoom?Math.max(a._animateToZoom,a.getZoom()):a.getZoom(),h=a.getZoomScale(u,this._tileZoom),m=a.project(r,this._tileZoom).floor(),S=a.getSize().divideBy(h*2);return new _e(m.subtract(S),m.add(S))},_update:function(r){var a=this._map;if(a){var u=this._clampZoom(a.getZoom());if(r===void 0&&(r=a.getCenter()),this._tileZoom!==void 0){var h=this._getTiledPixelBounds(r),m=this._pxBoundsToTileRange(h),S=m.getCenter(),D=[],$=this.options.keepBuffer,Z=new _e(m.getBottomLeft().subtract([$,-$]),m.getTopRight().add([$,-$]));if(!(isFinite(m.min.x)&&isFinite(m.min.y)&&isFinite(m.max.x)&&isFinite(m.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var se in this._tiles){var ye=this._tiles[se].coords;(ye.z!==this._tileZoom||!Z.contains(new x(ye.x,ye.y)))&&(this._tiles[se].current=!1)}if(Math.abs(u-this._tileZoom)>1){this._setView(r,u);return}for(var Fe=m.min.y;Fe<=m.max.y;Fe++)for(var Qe=m.min.x;Qe<=m.max.x;Qe++){var Cn=new x(Qe,Fe);if(Cn.z=this._tileZoom,!!this._isValidTile(Cn)){var tn=this._tiles[this._tileCoordsToKey(Cn)];tn?tn.current=!0:D.push(Cn)}}if(D.sort(function(Ln,wl){return Ln.distanceTo(S)-wl.distanceTo(S)}),D.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var lr=document.createDocumentFragment();for(Qe=0;Qe<D.length;Qe++)this._addTile(D[Qe],lr);this._level.el.appendChild(lr)}}}},_isValidTile:function(r){var a=this._map.options.crs;if(!a.infinite){var u=this._globalTileRange;if(!a.wrapLng&&(r.x<u.min.x||r.x>u.max.x)||!a.wrapLat&&(r.y<u.min.y||r.y>u.max.y))return!1}if(!this.options.bounds)return!0;var h=this._tileCoordsToBounds(r);return k(this.options.bounds).overlaps(h)},_keyToBounds:function(r){return this._tileCoordsToBounds(this._keyToTileCoords(r))},_tileCoordsToNwSe:function(r){var a=this._map,u=this.getTileSize(),h=r.scaleBy(u),m=h.add(u),S=a.unproject(h,r.z),D=a.unproject(m,r.z);return[S,D]},_tileCoordsToBounds:function(r){var a=this._tileCoordsToNwSe(r),u=new U(a[0],a[1]);return this.options.noWrap||(u=this._map.wrapLatLngBounds(u)),u},_tileCoordsToKey:function(r){return r.x+":"+r.y+":"+r.z},_keyToTileCoords:function(r){var a=r.split(":"),u=new x(+a[0],+a[1]);return u.z=+a[2],u},_removeTile:function(r){var a=this._tiles[r];a&&(Rt(a.el),delete this._tiles[r],this.fire("tileunload",{tile:a.el,coords:this._keyToTileCoords(r)}))},_initTile:function(r){qe(r,"leaflet-tile");var a=this.getTileSize();r.style.width=a.x+"px",r.style.height=a.y+"px",r.onselectstart=v,r.onmousemove=v,xe.ielt9&&this.options.opacity<1&&ar(r,this.options.opacity)},_addTile:function(r,a){var u=this._getTilePos(r),h=this._tileCoordsToKey(r),m=this.createTile(this._wrapCoords(r),c(this._tileReady,this,r));this._initTile(m),this.createTile.length<2&&B(c(this._tileReady,this,r,null,m)),Zt(m,u),this._tiles[h]={el:m,coords:r,current:!0},a.appendChild(m),this.fire("tileloadstart",{tile:m,coords:r})},_tileReady:function(r,a,u){a&&this.fire("tileerror",{error:a,tile:u,coords:r});var h=this._tileCoordsToKey(r);u=this._tiles[h],u&&(u.loaded=+new Date,this._map._fadeAnimated?(ar(u.el,0),ae(this._fadeFrame),this._fadeFrame=B(this._updateOpacity,this)):(u.active=!0,this._pruneTiles()),a||(qe(u.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:u.el,coords:r})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),xe.ielt9||!this._map._fadeAnimated?B(this._pruneTiles,this):setTimeout(c(this._pruneTiles,this),250)))},_getTilePos:function(r){return r.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(r){var a=new x(this._wrapX?_(r.x,this._wrapX):r.x,this._wrapY?_(r.y,this._wrapY):r.y);return a.z=r.z,a},_pxBoundsToTileRange:function(r){var a=this.getTileSize();return new _e(r.min.unscaleBy(a).floor(),r.max.unscaleBy(a).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var r in this._tiles)if(!this._tiles[r].loaded)return!1;return!0}});function kY(r){return new gu(r)}var Sl=gu.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(r,a){this._url=r,a=w(this,a),a.detectRetina&&xe.retina&&a.maxZoom>0?(a.tileSize=Math.floor(a.tileSize/2),a.zoomReverse?(a.zoomOffset--,a.minZoom=Math.min(a.maxZoom,a.minZoom+1)):(a.zoomOffset++,a.maxZoom=Math.max(a.minZoom,a.maxZoom-1)),a.minZoom=Math.max(0,a.minZoom)):a.zoomReverse?a.minZoom=Math.min(a.maxZoom,a.minZoom):a.maxZoom=Math.max(a.minZoom,a.maxZoom),typeof a.subdomains=="string"&&(a.subdomains=a.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(r,a){return this._url===r&&a===void 0&&(a=!0),this._url=r,a||this.redraw(),this},createTile:function(r,a){var u=document.createElement("img");return We(u,"load",c(this._tileOnLoad,this,a,u)),We(u,"error",c(this._tileOnError,this,a,u)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(u.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(u.referrerPolicy=this.options.referrerPolicy),u.alt="",u.src=this.getTileUrl(r),u},getTileUrl:function(r){var a={r:xe.retina?"@2x":"",s:this._getSubdomain(r),x:r.x,y:r.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var u=this._globalTileRange.max.y-r.y;this.options.tms&&(a.y=u),a["-y"]=u}return C(this._url,o(a,this.options))},_tileOnLoad:function(r,a){xe.ielt9?setTimeout(c(r,this,null,a),0):r(null,a)},_tileOnError:function(r,a,u){var h=this.options.errorTileUrl;h&&a.getAttribute("src")!==h&&(a.src=h),r(u,a)},_onTileRemove:function(r){r.tile.onload=null},_getZoomForUrl:function(){var r=this._tileZoom,a=this.options.maxZoom,u=this.options.zoomReverse,h=this.options.zoomOffset;return u&&(r=a-r),r+h},_getSubdomain:function(r){var a=Math.abs(r.x+r.y)%this.options.subdomains.length;return this.options.subdomains[a]},_abortLoading:function(){var r,a;for(r in this._tiles)if(this._tiles[r].coords.z!==this._tileZoom&&(a=this._tiles[r].el,a.onload=v,a.onerror=v,!a.complete)){a.src=G;var u=this._tiles[r].coords;Rt(a),delete this._tiles[r],this.fire("tileabort",{tile:a,coords:u})}},_removeTile:function(r){var a=this._tiles[r];if(a)return a.el.setAttribute("src",G),gu.prototype._removeTile.call(this,r)},_tileReady:function(r,a,u){if(!(!this._map||u&&u.getAttribute("src")===G))return gu.prototype._tileReady.call(this,r,a,u)}});function gb(r,a){return new Sl(r,a)}var yb=Sl.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(r,a){this._url=r;var u=o({},this.defaultWmsParams);for(var h in a)h in this.options||(u[h]=a[h]);a=w(this,a);var m=a.detectRetina&&xe.retina?2:1,S=this.getTileSize();u.width=S.x*m,u.height=S.y*m,this.wmsParams=u},onAdd:function(r){this._crs=this.options.crs||r.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var a=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[a]=this._crs.code,Sl.prototype.onAdd.call(this,r)},getTileUrl:function(r){var a=this._tileCoordsToNwSe(r),u=this._crs,h=N(u.project(a[0]),u.project(a[1])),m=h.min,S=h.max,D=(this._wmsVersion>=1.3&&this._crs===fb?[m.y,m.x,S.y,S.x]:[m.x,m.y,S.x,S.y]).join(","),$=Sl.prototype.getTileUrl.call(this,r);return $+T(this.wmsParams,$,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+D},setParams:function(r,a){return o(this.wmsParams,r),a||this.redraw(),this}});function CY(r,a){return new yb(r,a)}Sl.WMS=yb,gb.wms=CY;var Yi=kr.extend({options:{padding:.1},initialize:function(r){w(this,r),d(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),qe(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var r={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(r.zoomanim=this._onAnimZoom),r},_onAnimZoom:function(r){this._updateTransform(r.center,r.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(r,a){var u=this._map.getZoomScale(a,this._zoom),h=this._map.getSize().multiplyBy(.5+this.options.padding),m=this._map.project(this._center,a),S=h.multiplyBy(-u).add(m).subtract(this._map._getNewPixelOrigin(r,a));xe.any3d?$a(this._container,S,u):Zt(this._container,S)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var r in this._layers)this._layers[r]._reset()},_onZoomEnd:function(){for(var r in this._layers)this._layers[r]._project()},_updatePaths:function(){for(var r in this._layers)this._layers[r]._update()},_update:function(){var r=this.options.padding,a=this._map.getSize(),u=this._map.containerPointToLayerPoint(a.multiplyBy(-r)).round();this._bounds=new _e(u,u.add(a.multiplyBy(1+r*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Sb=Yi.extend({options:{tolerance:0},getEvents:function(){var r=Yi.prototype.getEvents.call(this);return r.viewprereset=this._onViewPreReset,r},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Yi.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var r=this._container=document.createElement("canvas");We(r,"mousemove",this._onMouseMove,this),We(r,"click dblclick mousedown mouseup contextmenu",this._onClick,this),We(r,"mouseout",this._handleMouseOut,this),r._leaflet_disable_events=!0,this._ctx=r.getContext("2d")},_destroyContainer:function(){ae(this._redrawRequest),delete this._ctx,Rt(this._container),bt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var r;this._redrawBounds=null;for(var a in this._layers)r=this._layers[a],r._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Yi.prototype._update.call(this);var r=this._bounds,a=this._container,u=r.getSize(),h=xe.retina?2:1;Zt(a,r.min),a.width=h*u.x,a.height=h*u.y,a.style.width=u.x+"px",a.style.height=u.y+"px",xe.retina&&this._ctx.scale(2,2),this._ctx.translate(-r.min.x,-r.min.y),this.fire("update")}},_reset:function(){Yi.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(r){this._updateDashArray(r),this._layers[d(r)]=r;var a=r._order={layer:r,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=a),this._drawLast=a,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(r){this._requestRedraw(r)},_removePath:function(r){var a=r._order,u=a.next,h=a.prev;u?u.prev=h:this._drawLast=h,h?h.next=u:this._drawFirst=u,delete r._order,delete this._layers[d(r)],this._requestRedraw(r)},_updatePath:function(r){this._extendRedrawBounds(r),r._project(),r._update(),this._requestRedraw(r)},_updateStyle:function(r){this._updateDashArray(r),this._requestRedraw(r)},_updateDashArray:function(r){if(typeof r.options.dashArray=="string"){var a=r.options.dashArray.split(/[, ]+/),u=[],h,m;for(m=0;m<a.length;m++){if(h=Number(a[m]),isNaN(h))return;u.push(h)}r.options._dashArray=u}else r.options._dashArray=r.options.dashArray},_requestRedraw:function(r){this._map&&(this._extendRedrawBounds(r),this._redrawRequest=this._redrawRequest||B(this._redraw,this))},_extendRedrawBounds:function(r){if(r._pxBounds){var a=(r.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new _e,this._redrawBounds.extend(r._pxBounds.min.subtract([a,a])),this._redrawBounds.extend(r._pxBounds.max.add([a,a]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var r=this._redrawBounds;if(r){var a=r.getSize();this._ctx.clearRect(r.min.x,r.min.y,a.x,a.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var r,a=this._redrawBounds;if(this._ctx.save(),a){var u=a.getSize();this._ctx.beginPath(),this._ctx.rect(a.min.x,a.min.y,u.x,u.y),this._ctx.clip()}this._drawing=!0;for(var h=this._drawFirst;h;h=h.next)r=h.layer,(!a||r._pxBounds&&r._pxBounds.intersects(a))&&r._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(r,a){if(this._drawing){var u,h,m,S,D=r._parts,$=D.length,Z=this._ctx;if($){for(Z.beginPath(),u=0;u<$;u++){for(h=0,m=D[u].length;h<m;h++)S=D[u][h],Z[h?"lineTo":"moveTo"](S.x,S.y);a&&Z.closePath()}this._fillStroke(Z,r)}}},_updateCircle:function(r){if(!(!this._drawing||r._empty())){var a=r._point,u=this._ctx,h=Math.max(Math.round(r._radius),1),m=(Math.max(Math.round(r._radiusY),1)||h)/h;m!==1&&(u.save(),u.scale(1,m)),u.beginPath(),u.arc(a.x,a.y/m,h,0,Math.PI*2,!1),m!==1&&u.restore(),this._fillStroke(u,r)}},_fillStroke:function(r,a){var u=a.options;u.fill&&(r.globalAlpha=u.fillOpacity,r.fillStyle=u.fillColor||u.color,r.fill(u.fillRule||"evenodd")),u.stroke&&u.weight!==0&&(r.setLineDash&&r.setLineDash(a.options&&a.options._dashArray||[]),r.globalAlpha=u.opacity,r.lineWidth=u.weight,r.strokeStyle=u.color,r.lineCap=u.lineCap,r.lineJoin=u.lineJoin,r.stroke())},_onClick:function(r){for(var a=this._map.mouseEventToLayerPoint(r),u,h,m=this._drawFirst;m;m=m.next)u=m.layer,u.options.interactive&&u._containsPoint(a)&&(!(r.type==="click"||r.type==="preclick")||!this._map._draggableMoved(u))&&(h=u);this._fireEvent(h?[h]:!1,r)},_onMouseMove:function(r){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var a=this._map.mouseEventToLayerPoint(r);this._handleMouseHover(r,a)}},_handleMouseOut:function(r){var a=this._hoveredLayer;a&&(Ft(this._container,"leaflet-interactive"),this._fireEvent([a],r,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(r,a){if(!this._mouseHoverThrottled){for(var u,h,m=this._drawFirst;m;m=m.next)u=m.layer,u.options.interactive&&u._containsPoint(a)&&(h=u);h!==this._hoveredLayer&&(this._handleMouseOut(r),h&&(qe(this._container,"leaflet-interactive"),this._fireEvent([h],r,"mouseover"),this._hoveredLayer=h)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,r),this._mouseHoverThrottled=!0,setTimeout(c(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(r,a,u){this._map._fireDOMEvent(a,u||a.type,r)},_bringToFront:function(r){var a=r._order;if(a){var u=a.next,h=a.prev;if(u)u.prev=h;else return;h?h.next=u:u&&(this._drawFirst=u),a.prev=this._drawLast,this._drawLast.next=a,a.next=null,this._drawLast=a,this._requestRedraw(r)}},_bringToBack:function(r){var a=r._order;if(a){var u=a.next,h=a.prev;if(h)h.next=u;else return;u?u.prev=h:h&&(this._drawLast=h),a.prev=null,a.next=this._drawFirst,this._drawFirst.prev=a,this._drawFirst=a,this._requestRedraw(r)}}});function wb(r){return xe.canvas?new Sb(r):null}var yu=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(r){return document.createElement("<lvml:"+r+' class="lvml">')}}catch{}return function(r){return document.createElement("<"+r+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),PY={_initContainer:function(){this._container=ht("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Yi.prototype._update.call(this),this.fire("update"))},_initPath:function(r){var a=r._container=yu("shape");qe(a,"leaflet-vml-shape "+(this.options.className||"")),a.coordsize="1 1",r._path=yu("path"),a.appendChild(r._path),this._updateStyle(r),this._layers[d(r)]=r},_addPath:function(r){var a=r._container;this._container.appendChild(a),r.options.interactive&&r.addInteractiveTarget(a)},_removePath:function(r){var a=r._container;Rt(a),r.removeInteractiveTarget(a),delete this._layers[d(r)]},_updateStyle:function(r){var a=r._stroke,u=r._fill,h=r.options,m=r._container;m.stroked=!!h.stroke,m.filled=!!h.fill,h.stroke?(a||(a=r._stroke=yu("stroke")),m.appendChild(a),a.weight=h.weight+"px",a.color=h.color,a.opacity=h.opacity,h.dashArray?a.dashStyle=M(h.dashArray)?h.dashArray.join(" "):h.dashArray.replace(/( *, *)/g," "):a.dashStyle="",a.endcap=h.lineCap.replace("butt","flat"),a.joinstyle=h.lineJoin):a&&(m.removeChild(a),r._stroke=null),h.fill?(u||(u=r._fill=yu("fill")),m.appendChild(u),u.color=h.fillColor||h.color,u.opacity=h.fillOpacity):u&&(m.removeChild(u),r._fill=null)},_updateCircle:function(r){var a=r._point.round(),u=Math.round(r._radius),h=Math.round(r._radiusY||u);this._setPath(r,r._empty()?"M0 0":"AL "+a.x+","+a.y+" "+u+","+h+" 0,"+65535*360)},_setPath:function(r,a){r._path.v=a},_bringToFront:function(r){pl(r._container)},_bringToBack:function(r){_l(r._container)}},vh=xe.vml?yu:ze,Su=Yi.extend({_initContainer:function(){this._container=vh("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=vh("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Rt(this._container),bt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Yi.prototype._update.call(this);var r=this._bounds,a=r.getSize(),u=this._container;(!this._svgSize||!this._svgSize.equals(a))&&(this._svgSize=a,u.setAttribute("width",a.x),u.setAttribute("height",a.y)),Zt(u,r.min),u.setAttribute("viewBox",[r.min.x,r.min.y,a.x,a.y].join(" ")),this.fire("update")}},_initPath:function(r){var a=r._path=vh("path");r.options.className&&qe(a,r.options.className),r.options.interactive&&qe(a,"leaflet-interactive"),this._updateStyle(r),this._layers[d(r)]=r},_addPath:function(r){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(r._path),r.addInteractiveTarget(r._path)},_removePath:function(r){Rt(r._path),r.removeInteractiveTarget(r._path),delete this._layers[d(r)]},_updatePath:function(r){r._project(),r._update()},_updateStyle:function(r){var a=r._path,u=r.options;a&&(u.stroke?(a.setAttribute("stroke",u.color),a.setAttribute("stroke-opacity",u.opacity),a.setAttribute("stroke-width",u.weight),a.setAttribute("stroke-linecap",u.lineCap),a.setAttribute("stroke-linejoin",u.lineJoin),u.dashArray?a.setAttribute("stroke-dasharray",u.dashArray):a.removeAttribute("stroke-dasharray"),u.dashOffset?a.setAttribute("stroke-dashoffset",u.dashOffset):a.removeAttribute("stroke-dashoffset")):a.setAttribute("stroke","none"),u.fill?(a.setAttribute("fill",u.fillColor||u.color),a.setAttribute("fill-opacity",u.fillOpacity),a.setAttribute("fill-rule",u.fillRule||"evenodd")):a.setAttribute("fill","none"))},_updatePoly:function(r,a){this._setPath(r,Wt(r._parts,a))},_updateCircle:function(r){var a=r._point,u=Math.max(Math.round(r._radius),1),h=Math.max(Math.round(r._radiusY),1)||u,m="a"+u+","+h+" 0 1,0 ",S=r._empty()?"M0 0":"M"+(a.x-u)+","+a.y+m+u*2+",0 "+m+-u*2+",0 ";this._setPath(r,S)},_setPath:function(r,a){r._path.setAttribute("d",a)},_bringToFront:function(r){pl(r._path)},_bringToBack:function(r){_l(r._path)}});xe.vml&&Su.include(PY);function Eb(r){return xe.svg||xe.vml?new Su(r):null}st.include({getRenderer:function(r){var a=r.options.renderer||this._getPaneRenderer(r.options.pane)||this.options.renderer||this._renderer;return a||(a=this._renderer=this._createRenderer()),this.hasLayer(a)||this.addLayer(a),a},_getPaneRenderer:function(r){if(r==="overlayPane"||r===void 0)return!1;var a=this._paneRenderers[r];return a===void 0&&(a=this._createRenderer({pane:r}),this._paneRenderers[r]=a),a},_createRenderer:function(r){return this.options.preferCanvas&&wb(r)||Eb(r)}});var Tb=gl.extend({initialize:function(r,a){gl.prototype.initialize.call(this,this._boundsToLatLngs(r),a)},setBounds:function(r){return this.setLatLngs(this._boundsToLatLngs(r))},_boundsToLatLngs:function(r){return r=k(r),[r.getSouthWest(),r.getNorthWest(),r.getNorthEast(),r.getSouthEast()]}});function DY(r,a){return new Tb(r,a)}Su.create=vh,Su.pointsToPath=Wt,Fi.geometryToLayer=uh,Fi.coordsToLatLng=fg,Fi.coordsToLatLngs=fh,Fi.latLngToCoords=dg,Fi.latLngsToCoords=dh,Fi.getFeature=yl,Fi.asFeature=hh,st.mergeOptions({boxZoom:!0});var bb=ei.extend({initialize:function(r){this._map=r,this._container=r._container,this._pane=r._panes.overlayPane,this._resetStateTimeout=0,r.on("unload",this._destroy,this)},addHooks:function(){We(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){bt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Rt(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(r){if(!r.shiftKey||r.which!==1&&r.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),fu(),jv(),this._startPoint=this._map.mouseEventToContainerPoint(r),We(document,{contextmenu:Ha,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(r){this._moved||(this._moved=!0,this._box=ht("div","leaflet-zoom-box",this._container),qe(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(r);var a=new _e(this._point,this._startPoint),u=a.getSize();Zt(this._box,a.min),this._box.style.width=u.x+"px",this._box.style.height=u.y+"px"},_finish:function(){this._moved&&(Rt(this._box),Ft(this._container,"leaflet-crosshair")),du(),qv(),bt(document,{contextmenu:Ha,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(r){if(!(r.which!==1&&r.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(c(this._resetState,this),0);var a=new U(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(a).fire("boxzoomend",{boxZoomBounds:a})}},_onKeyDown:function(r){r.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});st.addInitHook("addHandler","boxZoom",bb),st.mergeOptions({doubleClickZoom:!0});var Nb=ei.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(r){var a=this._map,u=a.getZoom(),h=a.options.zoomDelta,m=r.originalEvent.shiftKey?u-h:u+h;a.options.doubleClickZoom==="center"?a.setZoom(m):a.setZoomAround(r.containerPoint,m)}});st.addInitHook("addHandler","doubleClickZoom",Nb),st.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var kb=ei.extend({addHooks:function(){if(!this._draggable){var r=this._map;this._draggable=new Oo(r._mapPane,r._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),r.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),r.on("zoomend",this._onZoomEnd,this),r.whenReady(this._onZoomEnd,this))}qe(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Ft(this._map._container,"leaflet-grab"),Ft(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var r=this._map;if(r._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var a=k(this._map.options.maxBounds);this._offsetLimit=N(this._map.latLngToContainerPoint(a.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(a.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;r.fire("movestart").fire("dragstart"),r.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(r){if(this._map.options.inertia){var a=this._lastTime=+new Date,u=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(u),this._times.push(a),this._prunePositions(a)}this._map.fire("move",r).fire("drag",r)},_prunePositions:function(r){for(;this._positions.length>1&&r-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var r=this._map.getSize().divideBy(2),a=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=a.subtract(r).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(r,a){return r-(r-a)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var r=this._draggable._newPos.subtract(this._draggable._startPos),a=this._offsetLimit;r.x<a.min.x&&(r.x=this._viscousLimit(r.x,a.min.x)),r.y<a.min.y&&(r.y=this._viscousLimit(r.y,a.min.y)),r.x>a.max.x&&(r.x=this._viscousLimit(r.x,a.max.x)),r.y>a.max.y&&(r.y=this._viscousLimit(r.y,a.max.y)),this._draggable._newPos=this._draggable._startPos.add(r)}},_onPreDragWrap:function(){var r=this._worldWidth,a=Math.round(r/2),u=this._initialWorldOffset,h=this._draggable._newPos.x,m=(h-a+u)%r+a-u,S=(h+a+u)%r-a-u,D=Math.abs(m+u)<Math.abs(S+u)?m:S;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=D},_onDragEnd:function(r){var a=this._map,u=a.options,h=!u.inertia||r.noInertia||this._times.length<2;if(a.fire("dragend",r),h)a.fire("moveend");else{this._prunePositions(+new Date);var m=this._lastPos.subtract(this._positions[0]),S=(this._lastTime-this._times[0])/1e3,D=u.easeLinearity,$=m.multiplyBy(D/S),Z=$.distanceTo([0,0]),se=Math.min(u.inertiaMaxSpeed,Z),ye=$.multiplyBy(se/Z),Fe=se/(u.inertiaDeceleration*D),Qe=ye.multiplyBy(-Fe/2).round();!Qe.x&&!Qe.y?a.fire("moveend"):(Qe=a._limitOffset(Qe,a.options.maxBounds),B(function(){a.panBy(Qe,{duration:Fe,easeLinearity:D,noMoveStart:!0,animate:!0})}))}}});st.addInitHook("addHandler","dragging",kb),st.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Cb=ei.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(r){this._map=r,this._setPanDelta(r.options.keyboardPanDelta),this._setZoomDelta(r.options.zoomDelta)},addHooks:function(){var r=this._map._container;r.tabIndex<=0&&(r.tabIndex="0"),We(r,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),bt(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var r=document.body,a=document.documentElement,u=r.scrollTop||a.scrollTop,h=r.scrollLeft||a.scrollLeft;this._map._container.focus(),window.scrollTo(h,u)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(r){var a=this._panKeys={},u=this.keyCodes,h,m;for(h=0,m=u.left.length;h<m;h++)a[u.left[h]]=[-1*r,0];for(h=0,m=u.right.length;h<m;h++)a[u.right[h]]=[r,0];for(h=0,m=u.down.length;h<m;h++)a[u.down[h]]=[0,r];for(h=0,m=u.up.length;h<m;h++)a[u.up[h]]=[0,-1*r]},_setZoomDelta:function(r){var a=this._zoomKeys={},u=this.keyCodes,h,m;for(h=0,m=u.zoomIn.length;h<m;h++)a[u.zoomIn[h]]=r;for(h=0,m=u.zoomOut.length;h<m;h++)a[u.zoomOut[h]]=-r},_addHooks:function(){We(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){bt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(r){if(!(r.altKey||r.ctrlKey||r.metaKey)){var a=r.keyCode,u=this._map,h;if(a in this._panKeys){if(!u._panAnim||!u._panAnim._inProgress)if(h=this._panKeys[a],r.shiftKey&&(h=re(h).multiplyBy(3)),u.options.maxBounds&&(h=u._limitOffset(re(h),u.options.maxBounds)),u.options.worldCopyJump){var m=u.wrapLatLng(u.unproject(u.project(u.getCenter()).add(h)));u.panTo(m)}else u.panBy(h)}else if(a in this._zoomKeys)u.setZoom(u.getZoom()+(r.shiftKey?3:1)*this._zoomKeys[a]);else if(a===27&&u._popup&&u._popup.options.closeOnEscapeKey)u.closePopup();else return;Ha(r)}}});st.addInitHook("addHandler","keyboard",Cb),st.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Pb=ei.extend({addHooks:function(){We(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){bt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(r){var a=JT(r),u=this._map.options.wheelDebounceTime;this._delta+=a,this._lastMousePos=this._map.mouseEventToContainerPoint(r),this._startTime||(this._startTime=+new Date);var h=Math.max(u-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(c(this._performZoom,this),h),Ha(r)},_performZoom:function(){var r=this._map,a=r.getZoom(),u=this._map.options.zoomSnap||0;r._stop();var h=this._delta/(this._map.options.wheelPxPerZoomLevel*4),m=4*Math.log(2/(1+Math.exp(-Math.abs(h))))/Math.LN2,S=u?Math.ceil(m/u)*u:m,D=r._limitZoom(a+(this._delta>0?S:-S))-a;this._delta=0,this._startTime=null,D&&(r.options.scrollWheelZoom==="center"?r.setZoom(a+D):r.setZoomAround(this._lastMousePos,a+D))}});st.addInitHook("addHandler","scrollWheelZoom",Pb);var xY=600;st.mergeOptions({tapHold:xe.touchNative&&xe.safari&&xe.mobile,tapTolerance:15});var Db=ei.extend({addHooks:function(){We(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){bt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(r){if(clearTimeout(this._holdTimeout),r.touches.length===1){var a=r.touches[0];this._startPos=this._newPos=new x(a.clientX,a.clientY),this._holdTimeout=setTimeout(c(function(){this._cancel(),this._isTapValid()&&(We(document,"touchend",cn),We(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",a))},this),xY),We(document,"touchend touchcancel contextmenu",this._cancel,this),We(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function r(){bt(document,"touchend",cn),bt(document,"touchend touchcancel",r)},_cancel:function(){clearTimeout(this._holdTimeout),bt(document,"touchend touchcancel contextmenu",this._cancel,this),bt(document,"touchmove",this._onMove,this)},_onMove:function(r){var a=r.touches[0];this._newPos=new x(a.clientX,a.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(r,a){var u=new MouseEvent(r,{bubbles:!0,cancelable:!0,view:window,screenX:a.screenX,screenY:a.screenY,clientX:a.clientX,clientY:a.clientY});u._simulated=!0,a.target.dispatchEvent(u)}});st.addInitHook("addHandler","tapHold",Db),st.mergeOptions({touchZoom:xe.touch,bounceAtZoomLimits:!0});var xb=ei.extend({addHooks:function(){qe(this._map._container,"leaflet-touch-zoom"),We(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Ft(this._map._container,"leaflet-touch-zoom"),bt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(r){var a=this._map;if(!(!r.touches||r.touches.length!==2||a._animatingZoom||this._zooming)){var u=a.mouseEventToContainerPoint(r.touches[0]),h=a.mouseEventToContainerPoint(r.touches[1]);this._centerPoint=a.getSize()._divideBy(2),this._startLatLng=a.containerPointToLatLng(this._centerPoint),a.options.touchZoom!=="center"&&(this._pinchStartLatLng=a.containerPointToLatLng(u.add(h)._divideBy(2))),this._startDist=u.distanceTo(h),this._startZoom=a.getZoom(),this._moved=!1,this._zooming=!0,a._stop(),We(document,"touchmove",this._onTouchMove,this),We(document,"touchend touchcancel",this._onTouchEnd,this),cn(r)}},_onTouchMove:function(r){if(!(!r.touches||r.touches.length!==2||!this._zooming)){var a=this._map,u=a.mouseEventToContainerPoint(r.touches[0]),h=a.mouseEventToContainerPoint(r.touches[1]),m=u.distanceTo(h)/this._startDist;if(this._zoom=a.getScaleZoom(m,this._startZoom),!a.options.bounceAtZoomLimits&&(this._zoom<a.getMinZoom()&&m<1||this._zoom>a.getMaxZoom()&&m>1)&&(this._zoom=a._limitZoom(this._zoom)),a.options.touchZoom==="center"){if(this._center=this._startLatLng,m===1)return}else{var S=u._add(h)._divideBy(2)._subtract(this._centerPoint);if(m===1&&S.x===0&&S.y===0)return;this._center=a.unproject(a.project(this._pinchStartLatLng,this._zoom).subtract(S),this._zoom)}this._moved||(a._moveStart(!0,!1),this._moved=!0),ae(this._animRequest);var D=c(a._move,a,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=B(D,this,!0),cn(r)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,ae(this._animRequest),bt(document,"touchmove",this._onTouchMove,this),bt(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});st.addInitHook("addHandler","touchZoom",xb),st.BoxZoom=bb,st.DoubleClickZoom=Nb,st.Drag=kb,st.Keyboard=Cb,st.ScrollWheelZoom=Pb,st.TapHold=Db,st.TouchZoom=xb,n.Bounds=_e,n.Browser=xe,n.CRS=O,n.Canvas=Sb,n.Circle=ug,n.CircleMarker=ch,n.Class=P,n.Control=Nr,n.DivIcon=vb,n.DivOverlay=ti,n.DomEvent=j2,n.DomUtil=Z2,n.Draggable=Oo,n.Evented=W,n.FeatureGroup=Bi,n.GeoJSON=Fi,n.GridLayer=gu,n.Handler=ei,n.Icon=vl,n.ImageOverlay=ph,n.LatLng=H,n.LatLngBounds=U,n.Layer=kr,n.LayerGroup=ml,n.LineUtil=sY,n.Map=st,n.Marker=lh,n.Mixin=tY,n.Path=Io,n.Point=x,n.PolyUtil=nY,n.Polygon=gl,n.Polyline=Vi,n.Popup=_h,n.PosAnimation=QT,n.Projection=lY,n.Rectangle=Tb,n.Renderer=Yi,n.SVG=Su,n.SVGOverlay=mb,n.TileLayer=Sl,n.Tooltip=mh,n.Transformation=Oe,n.Util=he,n.VideoOverlay=_b,n.bind=c,n.bounds=N,n.canvas=wb,n.circle=mY,n.circleMarker=_Y,n.control=_u,n.divIcon=NY,n.extend=o,n.featureGroup=dY,n.geoJSON=pb,n.geoJson=yY,n.gridLayer=kY,n.icon=hY,n.imageOverlay=SY,n.latLng=ie,n.latLngBounds=k,n.layerGroup=fY,n.map=q2,n.marker=pY,n.point=re,n.polygon=gY,n.polyline=vY,n.popup=TY,n.rectangle=DY,n.setOptions=w,n.stamp=d,n.svg=Eb,n.svgOverlay=EY,n.tileLayer=gb,n.tooltip=bY,n.transformation=Ge,n.version=i,n.videoOverlay=wY;var OY=window.L;n.noConflict=function(){return window.L=OY,this},window.L=n})}($l,$l.exports)),$l.exports}var XO=KO();const Ul=jO(XO),JO=l.defineComponent({__name:"CapeRecordMap",props:{lat:{},long:{},zoom:{},icon:{}},setup(e){const t=e,n=l.ref(null);let i=null,o=null;function s(){if(i){i.setView([t.lat,t.long],t.zoom),o&&o.setLatLng([t.lat,t.long]);return}if(n.value){i=Ul.map(n.value).setView([t.lat,t.long],t.zoom),Ul.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:"&copy; OpenStreetMap contributors"}).addTo(i);const c=t.icon??new Ul.Icon.Default;o=Ul.marker([t.lat,t.long],{icon:c}).addTo(i)}}return l.onMounted(()=>{s()}),l.watch(()=>[t.lat,t.long,t.zoom,t.icon],()=>{if(i){if(i.setView([t.lat,t.long],t.zoom),o){o.setLatLng([t.lat,t.long]);const c=t.icon??new Ul.Icon.Default;o.setIcon(c)}}else s()}),(c,f)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"mapRef",ref:n,class:"leaflet-map"},null,512))}}),QO={key:0,class:"cape-next-result"},eI={key:1,class:"cape-next-result cape-next-result-null"},tI=l.defineComponent({__name:"CapeNextResult",props:{record:{type:Object,required:!0},linkTitle:{type:String,required:!1,default:"Next record in search results"}},setup(e){const t=mn(),n=e,i=l.computed(()=>{if(n.record!==void 0)return t.next(n.record)});return(o,s)=>{const c=l.resolveComponent("cape-record-label"),f=l.resolveComponent("cape-record-link");return i.value!==void 0?(l.openBlock(),l.createElementBlock("div",QO,[l.renderSlot(o.$slots,"before"),l.createVNode(f,{record:i.value,title:e.linkTitle},{default:l.withCtx(()=>[l.renderSlot(o.$slots,"link",{},()=>[l.createVNode(c,{record:i.value},null,8,["record"])])]),_:3},8,["record","title"]),l.renderSlot(o.$slots,"after")])):(l.openBlock(),l.createElementBlock("div",eI,[l.renderSlot(o.$slots,"otherwise")]))}}}),nI={key:0,class:"cape-previous-result"},rI={key:1,class:"cape-previous-result cape-previous-result-null"},iI=l.defineComponent({__name:"CapePreviousResult",props:{record:{type:Object,required:!0},linkTitle:{type:String,required:!1,default:"Previous record in dataset"}},setup(e){const t=mn(),n=e,i=l.computed(()=>{if(n.record!==void 0)return t.previous(n.record)});return(o,s)=>{const c=l.resolveComponent("cape-record-label"),f=l.resolveComponent("cape-record-link");return i.value!==void 0?(l.openBlock(),l.createElementBlock("div",nI,[l.renderSlot(o.$slots,"before"),l.createVNode(f,{record:i.value,title:e.linkTitle},{default:l.withCtx(()=>[l.renderSlot(o.$slots,"link",{},()=>[l.createVNode(c,{record:i.value},null,8,["record"])])]),_:3},8,["record","title"]),l.renderSlot(o.$slots,"after")])):(l.openBlock(),l.createElementBlock("div",rI,[l.renderSlot(o.$slots,"otherwise")]))}}}),oI={key:0,class:"cape-previous-record"},aI={key:1,class:"cape-previous-record cape-previous-record-null"},sI=l.defineComponent({__name:"CapePreviousRecord",props:{record:{type:Object,required:!0},linkTitle:{type:String,required:!1,default:"Previous record in dataset"}},setup(e){const t=oi(),n=e,i=l.computed(()=>{if(n.record!==void 0)return t.previous(n.record)});return(o,s)=>{const c=l.resolveComponent("cape-record-label"),f=l.resolveComponent("cape-record-link");return i.value!==void 0?(l.openBlock(),l.createElementBlock("div",oI,[l.renderSlot(o.$slots,"before"),l.createVNode(f,{record:i.value,title:e.linkTitle},{default:l.withCtx(()=>[l.renderSlot(o.$slots,"link",{},()=>[l.createVNode(c,{record:i.value},null,8,["record"])])]),_:3},8,["record","title"]),l.renderSlot(o.$slots,"after")])):(l.openBlock(),l.createElementBlock("div",aI,[l.renderSlot(o.$slots,"otherwise")]))}}}),lI={key:0,class:"cape-next-record"},cI={key:1,class:"cape-next-record cape-next-record-null"},uI=l.defineComponent({__name:"CapeNextRecord",props:{record:{type:Object,required:!0},linkTitle:{type:String,required:!1,default:"Next record in dataset"}},setup(e){const t=oi(),n=e,i=l.computed(()=>{if(n.record!==void 0)return t.next(n.record)});return(o,s)=>{const c=l.resolveComponent("cape-record-label"),f=l.resolveComponent("cape-record-link");return i.value!==void 0?(l.openBlock(),l.createElementBlock("div",lI,[l.renderSlot(o.$slots,"before"),l.createVNode(f,{record:i.value,title:e.linkTitle},{default:l.withCtx(()=>[l.renderSlot(o.$slots,"link",{},()=>[l.createVNode(c,{record:i.value},null,8,["record"])])]),_:3},8,["record","title"]),l.renderSlot(o.$slots,"after")])):(l.openBlock(),l.createElementBlock("div",cI,[l.renderSlot(o.$slots,"otherwise")]))}}}),ul=class ul{static add(t){ul.functions.push(t)}static all(){return ul.functions}static async execute(t,n){for(const i of ul.all().sort((o,s)=>o.priority-s.priority))try{await i.action(t,n)}catch(o){console.error("Error executing action:",o);return}}};Ke(ul,"functions",[]);let zl=ul;const w0={High:10,Low:1e3},Ba=class Ba{static async fetchIndexPageTitle(){if(Ba.indexHtmlTitle)return Ba.indexHtmlTitle;try{const t=await fetch("/index.html");if(!t.ok)return;const n=await t.text(),s=new DOMParser().parseFromString(n,"text/html").querySelector("title");return Ba.indexHtmlTitle=(s==null?void 0:s.text)||void 0,Ba.indexHtmlTitle}catch{return}}static async getPageTitle(t,n){const{name:i,params:o,meta:s}=t;if(i==="record"&&n.recordPageTitleExpression){const d=o==null?void 0:o.id;if(!d)throw new Error("Record ID is required but not specified.");if(Zi().status!=="OK")throw new Error("Dataset data not loaded. Cannot continue to build page title.");const v=oi().byId(d);return n.recordPageTitleExpression(v)}if(s!=null&&s.title)return s.title;const c=await this.fetchIndexPageTitle();return c||nn().title}};Ke(Ba,"indexHtmlTitle");let Ep=Ba;const fI={class:"cape-labelled-value"},dI={key:0,class:"cape-error cape-labelled-value-error"},hI=["title"],pI={key:1,class:"cape-labelled-value-label"},_I=l.defineComponent({__name:"CapeLabelledContent",props:{fieldValue:{},link:{}},setup(e){const t=e,n=l.computed(()=>{var i;return(i=t.fieldValue)==null?void 0:i.field});return(i,o)=>(l.openBlock(),l.createElementBlock("div",fI,[!i.fieldValue||!n.value?(l.openBlock(),l.createElementBlock("div",dI," [Error, trying to render label for a non-existent field] ")):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[n.value.description!==void 0&&n.value.description!==""?(l.openBlock(),l.createElementBlock("div",{key:0,title:n.value.description,class:"cape-labelled-value-label","data-toggle":"tooltip"},l.toDisplayString(n.value.label),9,hI)):(l.openBlock(),l.createElementBlock("div",pI,l.toDisplayString(n.value.label),1)),l.renderSlot(i.$slots,"default")],64))]))}}),mI=l.defineComponent({__name:"CapeLinkValue",props:{fieldValuePair:{}},setup(e){const t=e,n=Yt(),i=l.computed(()=>t.fieldValuePair.value),o=l.computed(()=>t.fieldValuePair.field),s=l.computed(()=>{const c="/",f={};try{n.byId(`field-${o.value.id}`).display==="advanced"&&(f.advanced="true"),f.jump="true",f[`field-${o.value.id}-mode`]="is",f[`field-${o.value.id}-term`]=`${i.value}`}catch{console.error(`Attempt to create link from field ${o.value.id} which has no related filter.`)}return{path:c,query:f}});return(c,f)=>{const d=l.resolveComponent("router-link");return l.openBlock(),l.createBlock(d,{to:s.value},{default:l.withCtx(()=>[l.renderSlot(c.$slots,"default")]),_:3},8,["to"])}}}),vI=l.defineComponent({__name:"CapePercentageValue",props:{value:{type:String,required:!0},digits:{type:Number,required:!1}},setup(e){const t=e,n=l.computed(()=>{if(t.value===void 0)return"";const i=parseFloat(t.value);return isNaN(i)?"":t.digits===void 0?i*100+"%":(i*100).toFixed(t.digits)+"%"});return(i,o)=>l.toDisplayString(n.value)}}),gI=l.defineComponent({__name:"CapeFixedNumericValue",props:{value:String,digits:Number},setup(e){const t=e,n=l.computed(()=>{if(t.value===void 0)return"";const i=parseFloat(t.value);return isNaN(i)?"":i.toFixed(t.digits)});return(i,o)=>l.toDisplayString(n.value)}}),yI={__name:"CapeShowAllResultsToggle",setup(e){const t=mn();return(n,i)=>l.withDirectives((l.openBlock(),l.createElementBlock("input",{"data-test":"show-all-filters","onUpdate:modelValue":i[0]||(i[0]=o=>l.unref(t).showAllResults=o),type:"checkbox",class:"cape-show-all-results-toggle"},null,512)),[[l.vModelCheckbox,l.unref(t).showAllResults]])}},SI={key:0,class:"cape-results-info"},wI={key:0},EI={key:1},TI={key:1,class:"cape-results-count"},bI=l.defineComponent({__name:"CapeResultsInfo",setup(e){const t=mn();return(n,i)=>l.unref(t).allResultsAreVisible?(l.openBlock(),l.createElementBlock("div",SI,[l.unref(t).visibleCount==1?(l.openBlock(),l.createElementBlock("div",wI,"Showing 1 matching record.")):(l.openBlock(),l.createElementBlock("div",EI,"Showing all "+l.toDisplayString(l.unref(t).visibleCount)+" matching records.",1))])):(l.openBlock(),l.createElementBlock("div",TI," Showing first "+l.toDisplayString(l.unref(t).visibleCount)+" of "+l.toDisplayString(l.unref(t).totalCount)+" matching records. ",1))}}),NI={class:"cape-results-count"},kI=l.defineComponent({__name:"CapeResultsCount",setup(e){const t=mn();return(n,i)=>(l.openBlock(),l.createElementBlock("span",NI,l.toDisplayString(l.unref(t).totalCount),1))}}),CI={class:"cape-filter-field-enum-is-radio"},PI={class:"form-check form-check-inline"},DI=["id"],xI=["for"],OI=["id","value"],II=["for"],RI=l.defineComponent({__name:"CapeFilterFieldEnumIsRadio",props:{filterId:{}},setup(e){const t=e,i=Yt().byId(t.filterId),o=i.field;return(s,c)=>(l.openBlock(),l.createElementBlock("ul",CI,[l.createElementVNode("li",PI,[l.withDirectives(l.createElementVNode("input",{id:"cape-filter-field-input-"+l.unref(i).id+"-","onUpdate:modelValue":c[0]||(c[0]=f=>l.unref(i).isTerm=f),type:"radio",value:""},null,8,DI),[[l.vModelRadio,l.unref(i).isTerm]]),l.createElementVNode("label",{for:"cape-filter-field-input-"+l.unref(i).id+"-"},c[2]||(c[2]=[l.createElementVNode("em",null,"any",-1)]),8,xI)]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(o).values,f=>(l.openBlock(),l.createElementBlock("li",{key:f},[l.withDirectives(l.createElementVNode("input",{id:"cape-filter-field-input-"+l.unref(i).id+"-"+f,"onUpdate:modelValue":c[1]||(c[1]=d=>l.unref(i).isTerm=d),value:f,type:"radio"},null,8,OI),[[l.vModelRadio,l.unref(i).isTerm]]),l.createElementVNode("label",{for:"cape-filter-field-input-"+l.unref(i).id+"-"+f},l.toDisplayString(f),9,II)]))),128))]))}}),LI=["aria-label"],MI=["value"],AI=l.defineComponent({__name:"CapeFilterFieldEnumIsSelect",props:{filterId:{}},setup(e){const t=e,i=Yt().byId(t.filterId),o=i.field;return(s,c)=>l.withDirectives((l.openBlock(),l.createElementBlock("select",{class:"cape-filter-field-enum-is-select","onUpdate:modelValue":c[0]||(c[0]=f=>l.unref(i).isTerm=f),"aria-label":"Select "+l.unref(o).label+" value."},[c[1]||(c[1]=l.createElementVNode("option",{key:"",value:""},null,-1)),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(o).values,f=>(l.openBlock(),l.createElementBlock("option",{key:f,value:f},l.toDisplayString(f),9,MI))),128))],8,LI)),[[l.vModelSelect,l.unref(i).isTerm]])}}),BI={class:"cape-filter-field-enum-one-of-checkbox"},VI=["id","value"],FI=["for"],YI=l.defineComponent({__name:"CapeFilterFieldEnumOneOfCheckbox",props:{filterId:{}},setup(e){const t=e,i=Yt().byId(t.filterId),o=i.field;return(s,c)=>(l.openBlock(),l.createElementBlock("ul",BI,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(o).values,f=>(l.openBlock(),l.createElementBlock("li",{key:f},[l.withDirectives(l.createElementVNode("input",{id:"cape-filter-field-input-"+l.unref(i).id+"-"+f,"onUpdate:modelValue":c[0]||(c[0]=d=>l.unref(i).oneOfTerms=d),value:f,type:"checkbox"},null,8,VI),[[l.vModelCheckbox,l.unref(i).oneOfTerms]]),l.createElementVNode("label",{for:"cape-filter-field-input-"+l.unref(i).id+"-"+f},l.toDisplayString(f),9,FI)]))),128))]))}});function Tp(e){return e===0?!1:Array.isArray(e)&&e.length===0?!0:!e}function $I(e){return(...t)=>!e(...t)}function UI(e,t){return e===void 0&&(e="undefined"),e===null&&(e="null"),e===!1&&(e="false"),e.toString().toLowerCase().indexOf(t.trim())!==-1}function zI(e){return e.filter(t=>!t.$isLabel)}function bp(e,t){return n=>n.reduce((i,o)=>o[e]&&o[e].length?(i.push({$groupLabel:o[t],$isLabel:!0}),i.concat(o[e])):i,[])}const E0=(...e)=>t=>e.reduce((n,i)=>i(n),t);var HI={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 Tp(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},filteringSortFunc:{type:Function,default:null}},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):this.filterOptions(n,t,this.label,this.customLabel):n=this.groupValues?bp(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter($I(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 E0(this.filterGroups(t,n,this.groupValues,this.groupLabel,this.customLabel),bp(this.groupValues,this.groupLabel))(e)},flatAndStrip(e){return E0(bp(this.groupValues,this.groupLabel),zI)(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(Tp(e))return"";if(e.isTag)return e.label;if(e.$isLabel)return e.$groupLabel;const t=this.customLabel(e,this.label);return Tp(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.trackBy?t[this.groupValues].map(o=>o[this.trackBy]):t[this.groupValues],i=this.internalValue.filter(o=>n.indexOf(this.trackBy?o[this.trackBy]:o)===-1);this.$emit("update:modelValue",i)}else{const n=t[this.groupValues].filter(i=>!(this.isOptionDisabled(i)||this.isSelected(i)));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 i=this.internalValue.slice(0,n).concat(this.internalValue.slice(n+1));this.$emit("update:modelValue",i)}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))},filterOptions(e,t,n,i){return t?e.filter(o=>UI(i(o,n),t)).sort((o,s)=>typeof this.filteringSortFunc=="function"?this.filteringSortFunc(o,s):i(o,n).length-i(s,n).length):e},filterGroups(e,t,n,i,o){return s=>s.map(c=>{if(!c[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const f=this.filterOptions(c[n],e,t,o);return f.length?{[i]:c[i],[n]:f}:[]})}}},WI={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(i=>i[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}}},T0={name:"vue-multiselect",mixins:[HI,WI],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},spellcheck:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0},required:{type:Boolean,default:!1}},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)},isRequired(){return this.required===!1?!1:this.internalValue.length<=0}}};const ZI=["tabindex","aria-expanded","aria-owns","aria-activedescendant"],GI={ref:"tags",class:"multiselect__tags"},jI={class:"multiselect__tags-wrap"},qI=["textContent"],KI=["onKeypress","onMousedown"],XI=["textContent"],JI={class:"multiselect__spinner"},QI=["name","id","spellcheck","placeholder","required","value","disabled","tabindex","aria-label","aria-controls"],eR=["id","aria-multiselectable"],tR={key:0},nR={class:"multiselect__option"},rR=["aria-selected","id","role"],iR=["onClick","onMouseenter","data-select","data-selected","data-deselect"],oR=["data-select","data-deselect","onMouseenter","onMousedown"],aR={class:"multiselect__option"},sR={class:"multiselect__option"};function lR(e,t,n,i,o,s){return l.openBlock(),l.createElementBlock("div",{tabindex:e.searchable?-1:n.tabindex,class:l.normalizeClass([{"multiselect--active":e.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":s.isAbove,"multiselect--has-options-group":s.hasOptionGroup},"multiselect"]),onFocus:t[14]||(t[14]=c=>e.activate()),onBlur:t[15]||(t[15]=c=>e.searchable?!1:e.deactivate()),onKeydown:[t[16]||(t[16]=l.withKeys(l.withModifiers(c=>e.pointerForward(),["self","prevent"]),["down"])),t[17]||(t[17]=l.withKeys(l.withModifiers(c=>e.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:t[18]||(t[18]=l.withKeys(l.withModifiers(c=>e.addPointerElement(c),["stop","self"]),["enter","tab"])),onKeyup:t[19]||(t[19]=l.withKeys(c=>e.deactivate(),["esc"])),role:"combobox","aria-expanded":e.isOpen,"aria-owns":"listbox-"+e.id,"aria-activedescendant":e.isOpen&&e.pointer!==null?e.id+"-"+e.pointer:null},[l.renderSlot(e.$slots,"caret",{toggle:e.toggle},()=>[l.createElementVNode("div",{onMousedown:t[0]||(t[0]=l.withModifiers(c=>e.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),l.renderSlot(e.$slots,"clear",{search:e.search}),l.createElementVNode("div",GI,[l.renderSlot(e.$slots,"selection",{search:e.search,remove:e.removeElement,values:s.visibleValues,isOpen:e.isOpen},()=>[l.withDirectives(l.createElementVNode("div",jI,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s.visibleValues,(c,f)=>l.renderSlot(e.$slots,"tag",{option:c,search:e.search,remove:e.removeElement},()=>[(l.openBlock(),l.createElementBlock("span",{class:"multiselect__tag",key:f,onMousedown:t[1]||(t[1]=l.withModifiers(()=>{},["prevent"]))},[l.createElementVNode("span",{textContent:l.toDisplayString(e.getOptionLabel(c))},null,8,qI),l.createElementVNode("i",{tabindex:"1",onKeypress:l.withKeys(l.withModifiers(d=>e.removeElement(c),["prevent"]),["enter"]),onMousedown:l.withModifiers(d=>e.removeElement(c),["prevent"]),class:"multiselect__tag-icon"},null,40,KI)],32))])),256))],512),[[l.vShow,s.visibleValues.length>0]]),e.internalValue&&e.internalValue.length>n.limit?l.renderSlot(e.$slots,"limit",{key:0},()=>[l.createElementVNode("strong",{class:"multiselect__strong",textContent:l.toDisplayString(n.limitText(e.internalValue.length-n.limit))},null,8,XI)]):l.createCommentVNode("v-if",!0)]),l.createVNode(l.Transition,{name:"multiselect__loading"},{default:l.withCtx(()=>[l.renderSlot(e.$slots,"loading",{},()=>[l.withDirectives(l.createElementVNode("div",JI,null,512),[[l.vShow,n.loading]])])]),_:3}),e.searchable?(l.openBlock(),l.createElementBlock("input",{key:0,ref:"search",name:n.name,id:e.id,type:"text",autocomplete:"off",spellcheck:n.spellcheck,placeholder:e.placeholder,required:s.isRequired,style:l.normalizeStyle(s.inputStyle),value:e.search,disabled:n.disabled,tabindex:n.tabindex,"aria-label":n.name+"-searchbox",onInput:t[2]||(t[2]=c=>e.updateSearch(c.target.value)),onFocus:t[3]||(t[3]=l.withModifiers(c=>e.activate(),["prevent"])),onBlur:t[4]||(t[4]=l.withModifiers(c=>e.deactivate(),["prevent"])),onKeyup:t[5]||(t[5]=l.withKeys(c=>e.deactivate(),["esc"])),onKeydown:[t[6]||(t[6]=l.withKeys(l.withModifiers(c=>e.pointerForward(),["prevent"]),["down"])),t[7]||(t[7]=l.withKeys(l.withModifiers(c=>e.pointerBackward(),["prevent"]),["up"])),t[9]||(t[9]=l.withKeys(l.withModifiers(c=>e.removeLastElement(),["stop"]),["delete"]))],onKeypress:t[8]||(t[8]=l.withKeys(l.withModifiers(c=>e.addPointerElement(c),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+e.id},null,44,QI)):l.createCommentVNode("v-if",!0),s.isSingleLabelVisible?(l.openBlock(),l.createElementBlock("span",{key:1,class:"multiselect__single",onMousedown:t[10]||(t[10]=l.withModifiers((...c)=>e.toggle&&e.toggle(...c),["prevent"]))},[l.renderSlot(e.$slots,"singleLabel",{option:s.singleValue},()=>[l.createTextVNode(l.toDisplayString(e.currentOptionLabel),1)])],32)):l.createCommentVNode("v-if",!0),s.isPlaceholderVisible?(l.openBlock(),l.createElementBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:t[11]||(t[11]=l.withModifiers((...c)=>e.toggle&&e.toggle(...c),["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",persisted:""},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("div",{class:"multiselect__content-wrapper",onFocus:t[12]||(t[12]=(...c)=>e.activate&&e.activate(...c)),tabindex:"-1",onMousedown:t[13]||(t[13]=l.withModifiers(()=>{},["prevent"])),style:l.normalizeStyle({maxHeight:e.optimizedHeight+"px"}),ref:"list"},[l.createElementVNode("ul",{class:"multiselect__content",style:l.normalizeStyle(s.contentStyle),role:"listbox",id:"listbox-"+e.id,"aria-multiselectable":e.multiple},[l.renderSlot(e.$slots,"beforeList"),e.multiple&&e.max===e.internalValue.length?(l.openBlock(),l.createElementBlock("li",tR,[l.createElementVNode("span",nR,[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.createElementBlock(l.Fragment,{key:1},l.renderList(e.filteredOptions,(c,f)=>(l.openBlock(),l.createElementBlock("li",{class:"multiselect__element",key:f,"aria-selected":e.isSelected(c),id:e.id+"-"+f,role:c&&(c.$isLabel||c.$isDisabled)?null:"option"},[c&&(c.$isLabel||c.$isDisabled)?l.createCommentVNode("v-if",!0):(l.openBlock(),l.createElementBlock("span",{key:0,class:l.normalizeClass([e.optionHighlight(f,c),"multiselect__option"]),onClick:l.withModifiers(d=>e.select(c),["stop"]),onMouseenter:l.withModifiers(d=>e.pointerSet(f),["self"]),"data-select":c&&c.isTag?e.tagPlaceholder:s.selectLabelText,"data-selected":s.selectedLabelText,"data-deselect":s.deselectLabelText},[l.renderSlot(e.$slots,"option",{option:c,search:e.search,index:f},()=>[l.createElementVNode("span",null,l.toDisplayString(e.getOptionLabel(c)),1)])],42,iR)),c&&(c.$isLabel||c.$isDisabled)?(l.openBlock(),l.createElementBlock("span",{key:1,"data-select":e.groupSelect&&s.selectGroupLabelText,"data-deselect":e.groupSelect&&s.deselectGroupLabelText,class:l.normalizeClass([e.groupHighlight(f,c),"multiselect__option"]),onMouseenter:l.withModifiers(d=>e.groupSelect&&e.pointerSet(f),["self"]),onMousedown:l.withModifiers(d=>e.selectGroup(c),["prevent"])},[l.renderSlot(e.$slots,"option",{option:c,search:e.search,index:f},()=>[l.createElementVNode("span",null,l.toDisplayString(e.getOptionLabel(c)),1)])],42,oR)):l.createCommentVNode("v-if",!0)],8,rR))),128)):l.createCommentVNode("v-if",!0),l.withDirectives(l.createElementVNode("li",null,[l.createElementVNode("span",aR,[l.renderSlot(e.$slots,"noResult",{search:e.search},()=>[t[20]||(t[20]=l.createTextVNode("No elements found. Consider changing the search query."))])])],512),[[l.vShow,n.showNoResults&&e.filteredOptions.length===0&&e.search&&!n.loading]]),l.withDirectives(l.createElementVNode("li",null,[l.createElementVNode("span",sR,[l.renderSlot(e.$slots,"noOptions",{},()=>[t[21]||(t[21]=l.createTextVNode("List is empty."))])])],512),[[l.vShow,n.showNoOptions&&(e.options.length===0||s.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!n.loading]]),l.renderSlot(e.$slots,"afterList")],12,eR)],36),[[l.vShow,e.isOpen]])]),_:3})],42,ZI)}T0.render=lR;const cR=l.defineComponent({__name:"CapeFilterFieldEnumOneOfMultiselect",props:{filterId:{}},setup(e){const t=e,i=Yt().byId(t.filterId),o=i.field;return(s,c)=>(l.openBlock(),l.createBlock(l.unref(T0),{id:"filter-multiselect-"+l.unref(o).id,modelValue:l.unref(i).oneOfTerms,"onUpdate:modelValue":c[0]||(c[0]=f=>l.unref(i).oneOfTerms=f),"clear-on-select":!1,"close-on-select":!0,multiple:!0,options:l.unref(o).values,"preserve-search":!0,placeholder:"Select (1 or more)"},null,8,["id","modelValue","options"]))}}),uR={};function fR(e,t){const n=l.resolveComponent("cape-version");return l.openBlock(),l.createElementBlock("p",null,[t[0]||(t[0]=l.createTextVNode(" This website uses pure Javascript to provide interaction with a JSON datafile which contains the records and site configuration. It does not require any database or PHP -- all the searching is done using javascript inside the single page. This toolkit is called ")),t[1]||(t[1]=l.createElementVNode("i",null,"CAPE",-1)),t[2]||(t[2]=l.createTextVNode(". CAPE will be reused for similar projects in future. CAPE was created by the ")),t[3]||(t[3]=l.createElementVNode("a",{href:"https://ras.soton.ac.uk/"},"Research Application Support",-1)),t[4]||(t[4]=l.createTextVNode(" team at the ")),t[5]||(t[5]=l.createElementVNode("a",{href:"https://www.southampton.ac.uk/"},"University of Southampton",-1)),t[6]||(t[6]=l.createTextVNode(", UK. This site uses Cape ")),l.createVNode(n),t[7]||(t[7]=l.createTextVNode(". "))])}const dR=ji(uR,[["render",fR]]),hR={},pR={class:"border border-black p-1 fixed right-1 top-1"};function _R(e,t){return l.openBlock(),l.createElementBlock("div",pR,t[0]||(t[0]=[l.createStaticVNode('<span class="block sm:hidden">&lt;sm</span><span class="hidden sm:block md:hidden">sm</span><span class="hidden md:block lg:hidden">md</span><span class="hidden lg:block xl:hidden">lg</span><span class="hidden xl:block 2xl:hidden">xl</span><span class="hidden 2xl:block">2xl+</span>',6)]))}const mR=ji(hR,[["render",_R]]),vR="3.7.0",gR={class:"cape-plugin-version"},yR=l.defineComponent({__name:"CapeVersion",setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("span",gR,"v"+l.toDisplayString(l.unref(vR)),1))}}),SR={class:"cape-content-page"},wR=["href"],ER=["href"],TR={key:0},bR={key:0},NR=["href"],kR=l.defineComponent({__name:"CapeAboutPage",setup(e){const{metadata:t}=nn();return(n,i)=>{var p,_,v,y,g,E,w,T,b,C,M,z,G,oe,R;const o=l.resolveComponent("cape-record-count"),s=l.resolveComponent("cape-download-json-button"),c=l.resolveComponent("cape-download-csv-button"),f=l.resolveComponent("cape-software"),d=l.resolveComponent("cape-fields-table");return l.openBlock(),l.createElementBlock("div",SR,[i[8]||(i[8]=l.createElementVNode("h2",null,"About the data",-1)),l.createElementVNode("p",null,[i[0]||(i[0]=l.createTextVNode(" This dataset has been created and shared with the intention it should be reused. The dataset contains ")),l.createVNode(o),i[1]||(i[1]=l.createTextVNode(" records. The fields in the dataset are described below. "))]),l.createElementVNode("p",null,[i[2]||(i[2]=l.createTextVNode(" This data is copyright ")),l.createElementVNode("a",{href:(_=(p=l.unref(t))==null?void 0:p.copyright)==null?void 0:_.url},l.toDisplayString(((y=(v=l.unref(t))==null?void 0:v.copyright)==null?void 0:y.title)??"MISSING DATA"),9,wR),i[3]||(i[3]=l.createTextVNode(" and may be reused under the ")),l.createElementVNode("a",{href:(E=(g=l.unref(t))==null?void 0:g.license)==null?void 0:E.url},l.toDisplayString(((T=(w=l.unref(t))==null?void 0:w.license)==null?void 0:T.title)??"MISSING DATA"),9,ER),i[4]||(i[4]=l.createTextVNode(" license. "))]),(b=l.unref(t))!=null&&b.creators?(l.openBlock(),l.createElementBlock("p",TR,[i[5]||(i[5]=l.createTextVNode(" This dataset was created by ")),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(t).creators,(F,Q)=>{var A;return l.openBlock(),l.createElementBlock("span",{key:Q},[l.createElementVNode("span",null,l.toDisplayString(F.name),1),Q+1<((A=l.unref(t).creators)==null?void 0:A.length)?(l.openBlock(),l.createElementBlock("span",bR,", ")):l.createCommentVNode("",!0)])}),128)),i[6]||(i[6]=l.createTextVNode(". "))])):l.createCommentVNode("",!0),l.createElementVNode("p",null,[l.createTextVNode(' If using this data, please attribute it as "'+l.toDisplayString(((M=(C=l.unref(t))==null?void 0:C.attribution)==null?void 0:M.title)??"MISSING DATA")+'" with a link to ',1),l.createElementVNode("a",{href:(G=(z=l.unref(t))==null?void 0:z.attribution)==null?void 0:G.url},l.toDisplayString(((R=(oe=l.unref(t))==null?void 0:oe.attribution)==null?void 0:R.url)??"MISSING DATA"),9,NR),i[7]||(i[7]=l.createTextVNode(". "))]),l.createElementVNode("p",null,[l.createVNode(s,{style:{"margin-right":"1rem"}}),l.createVNode(c)]),i[9]||(i[9]=l.createElementVNode("h2",null,"About this software",-1)),l.createVNode(f),i[10]||(i[10]=l.createElementVNode("h2",null,"Schema",-1)),i[11]||(i[11]=l.createElementVNode("p",null," Field types may be text, date, integer or enum. An enum field is short for enumerated, which means a limited set of terms rather than free text. ",-1)),l.createVNode(d)])}}}),CR=l.defineComponent({__name:"CapeSummaryCard",props:{record:{}},setup(e){return(t,n)=>{const i=l.resolveComponent("cape-value"),o=l.resolveComponent("cape-record-link");return l.openBlock(),l.createBlock(o,{class:"cape-summary-card block bg-blue-100 py-2 px-4 my-1",record:t.record},{default:l.withCtx(()=>[l.createElementVNode("div",null,[l.createVNode(i,{"field-value":t.record.record_number},null,8,["field-value"]),n[0]||(n[0]=l.createTextVNode(" - ")),l.createVNode(i,{"field-value":t.record.title},null,8,["field-value"]),n[1]||(n[1]=l.createTextVNode(" - ")),l.createVNode(i,{"field-value":t.record.date},null,8,["field-value"])])]),_:1},8,["record"])}}}),PR={class:"cape-navigation"},DR={class:"cape-navigation-items"},xR={class:"cape-navigation-item"},OR=l.defineComponent({__name:"CapeNavigation",setup(e){const t=nn(),n=l.computed(()=>t.pages);return(i,o)=>{const s=l.resolveComponent("router-link"),c=l.resolveComponent("router-view");return l.openBlock(),l.createElementBlock("div",PR,[l.createElementVNode("nav",null,[l.createElementVNode("ul",DR,[l.createElementVNode("li",xR,[l.createVNode(s,{class:"cape-navigation-link",to:"/"},{default:l.withCtx(()=>o[0]||(o[0]=[l.createTextVNode("Search")])),_:1,__:[0]})]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.value,f=>(l.openBlock(),l.createElementBlock("li",{class:"cape-navigation-item",key:f.path},[l.createVNode(s,{class:"cape-navigation-link",to:f.path},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(f.label),1)]),_:2},1032,["to"])]))),128))])]),l.createElementVNode("main",null,[l.createVNode(c)])])}}}),IR={class:"cape-record-card bg-blue-100 py-2 px-4"},RR={class:"text-xl border-black border-b mb-4"},LR={class:"border-b mb-4 pb-4 border-b-black"},MR={class:"md:grid md:grid-cols-2 md:gap-4"},AR={class:"border-b mb-4 pb-4 border-b-black"},BR={class:"md:grid md:grid-cols-2 md:gap-4"},VR={class:"md:grid md:grid-cols-2 md:gap-4"},FR={class:"mb-5"},YR=l.defineComponent({__name:"CapeRecordCard",props:{record:{},previousInDataset:{},nextInDataset:{},previousInResults:{},nextInResults:{}},setup(e){return(t,n)=>{const i=l.resolveComponent("cape-previous-result"),o=l.resolveComponent("cape-next-result"),s=l.resolveComponent("cape-previous-record"),c=l.resolveComponent("cape-next-record"),f=l.resolveComponent("cape-labelled-value");return l.openBlock(),l.createElementBlock("div",IR,[l.createElementVNode("h2",RR,"RecordCard Placeholder ID: "+l.toDisplayString(t.record.record_number.value),1),l.createElementVNode("div",LR,[l.createElementVNode("div",MR,[l.createVNode(i,{record:t.record},{before:l.withCtx(()=>n[0]||(n[0]=[l.createTextVNode("← ")])),otherwise:l.withCtx(()=>n[1]||(n[1]=[l.createTextVNode("[start of results]")])),_:1},8,["record"]),l.createVNode(o,{record:t.record,class:"text-right"},{after:l.withCtx(()=>n[2]||(n[2]=[l.createTextVNode(" →")])),otherwise:l.withCtx(()=>n[3]||(n[3]=[l.createTextVNode("[end of results]")])),_:1},8,["record"])])]),l.createElementVNode("div",AR,[l.createElementVNode("div",BR,[l.createVNode(s,{record:t.record},{before:l.withCtx(()=>n[4]||(n[4]=[l.createTextVNode("← ")])),otherwise:l.withCtx(()=>n[5]||(n[5]=[l.createTextVNode("[start of dataset]")])),_:1},8,["record"]),l.createVNode(c,{record:t.record,class:"text-right"},{after:l.withCtx(()=>n[6]||(n[6]=[l.createTextVNode(" →")])),otherwise:l.withCtx(()=>n[7]||(n[7]=[l.createTextVNode("[end of dataset]")])),_:1},8,["record"])])]),l.createElementVNode("div",VR,[l.createElementVNode("ul",FR,[l.createElementVNode("li",null,[l.createVNode(f,{hideIfEmpty:!1,link:!1,"field-value":t.record.record_number},null,8,["field-value"])]),l.createElementVNode("li",null,[l.createVNode(f,{hideIfEmpty:!1,link:!1,"field-value":t.record.title},null,8,["field-value"])]),l.createElementVNode("li",null,[l.createVNode(f,{hideIfEmpty:!1,link:!1,"field-value":t.record.date},null,8,["field-value"])])]),n[8]||(n[8]=l.createElementVNode("div",null," Column 2 ",-1))])])}}}),$R={};function UR(e,t){const n=l.resolveComponent("cape-page-width-indicator"),i=l.resolveComponent("cape-non-prod-warning");return l.openBlock(),l.createElementBlock("header",null,[l.createVNode(n),t[0]||(t[0]=l.createElementVNode("h1",{class:"text-4xl"},[l.createElementVNode("a",{href:"/",id:"service-title"},"CAPE")],-1)),l.createVNode(i)])}const zR=ji($R,[["render",UR]]),HR={class:"mt-10 py-5 px-4 bg-gray-700 text-white flex items-center justify-between"},WR={class:"text-left"},ZR=["href"],GR={class:"text-right"},jR={__name:"CapeFooter",setup(e){const{metadata:t}=nn();return(n,i)=>{var s,c,f,d;const o=l.resolveComponent("cape-version");return l.openBlock(),l.createElementBlock("footer",HR,[l.createElementVNode("div",WR,[i[0]||(i[0]=l.createTextVNode(" © ")),l.createElementVNode("a",{href:(c=(s=l.unref(t))==null?void 0:s.copyright)==null?void 0:c.url},l.toDisplayString(((d=(f=l.unref(t))==null?void 0:f.copyright)==null?void 0:d.title)??"MISSING COPYRIGHT METADATA"),9,ZR)]),i[2]||(i[2]=l.createElementVNode("div",{class:"text-center"},null,-1)),l.createElementVNode("div",GR,[i[1]||(i[1]=l.createTextVNode(" Powered by Cape ")),l.createVNode(o)])])}}},qR={class:"cape-record-label"},KR=l.defineComponent({__name:"CapeRecordLabel",props:{record:{}},setup(e){return(t,n)=>{const i=l.resolveComponent("cape-value");return l.openBlock(),l.createElementBlock("span",qR,[l.createVNode(i,{"field-value":t.record.title},null,8,["field-value"]),n[0]||(n[0]=l.createTextVNode(" # ")),l.createVNode(i,{"field-value":t.record.record_number},null,8,["field-value"])])}}}),XR={class:"cape-filter-controls cape-filter-controls-top"},JR={class:"cape-advanced-search-toggle-control switch switch-sm"},QR={key:0,class:"cape-filter-controls cape-filter-controls-bottom"},eL={class:"cape-advanced-search-toggle-control switch switch-sm"},tL=l.defineComponent({__name:"CapeHomepageLayout",setup(e){const t=Yt(),n=l.computed(()=>t.showAdvanced);return(i,o)=>{const s=l.resolveComponent("cape-intro"),c=l.resolveComponent("cape-advanced-search-toggle"),f=l.resolveComponent("cape-form-reset-button"),d=l.resolveComponent("cape-filters"),p=l.resolveComponent("cape-results");return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createVNode(s),l.createElementVNode("div",XR,[l.createElementVNode("div",JR,[l.createVNode(c,{id:"cape-advanced-search-toggle-top"}),o[0]||(o[0]=l.createElementVNode("label",{for:"cape-advanced-search-toggle-top"},"Advanced Search",-1))]),l.createVNode(f)]),l.createElementVNode("div",null,[l.createVNode(d)]),n.value?(l.openBlock(),l.createElementBlock("div",QR,[l.createElementVNode("div",eL,[l.createVNode(c,{id:"cape-advanced-search-toggle-bottom"}),o[1]||(o[1]=l.createElementVNode("label",{for:"cape-advanced-search-toggle-bottom"},"Advanced Search",-1))]),l.createVNode(f)])):l.createCommentVNode("",!0),l.createElementVNode("div",null,[l.createVNode(p)])],64)}}}),nL={},rL={class:"cape-intro mb-10"};function iL(e,t){const n=l.resolveComponent("cape-record-count");return l.openBlock(),l.createElementBlock("p",rL,[t[0]||(t[0]=l.createElementVNode("strong",null,"Your intro text goes here.",-1)),t[1]||(t[1]=l.createTextVNode(" This repository contains ")),l.createVNode(n),t[2]||(t[2]=l.createTextVNode(" records. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas facilisis feugiat nunc vel interdum. Duis vehicula congue imperdiet. Vivamus sit amet lacus lectus. Proin nec placerat eros, nec eleifend sapien. Suspendisse in ante placerat, sodales arcu id, ornare odio. (component version) "))])}const oL=ji(nL,[["render",iL]]),aL=l.defineComponent({name:"CapeAboutPage",template:"#templateCapeAbout",computed:{metadata(){return nn().metadata}}}),sL={template:"#templateCapeSummaryCard",props:["record"]},lL={template:"#templateCapeNavigation",computed:{...Vh(nn,["pages"])}},cL={template:"#templateCapeRecordCard",props:["record","previousInDataset","nextInDataset","previousInResults","nextInResults"]},uL={template:"#templateCapeHeader"},fL={template:"#templateCapeFooter"},dL={template:"#templateCapeRecordLabel",props:["record"]},hL={template:"#templateCapeHomepageLayout",computed:{...Vh(Yt,["showAdvanced"]),...Vh(mn,{hasMatches:e=>e.totalCount>0})}},b0={install:function(e,t){e.use(Nk());const n=this.makeComponentMap(t);this.registerComponents(e,n),nn().setOptions(t),this.registerRoutes(e,t.pages,$h);const o=async s=>{const c=await Ep.getPageTitle(s,t);c&&(document.title=c)};zl.add({priority:w0.High,action:o}),$h.afterEach(async(s,c)=>{Zi().onLoaded(async()=>{await zl.execute(s,c)})}),e.use($h)},registerRoutes:function(e,t,n){n.addRoute({name:"root",path:"/",component:e.component("CapeHomePage")}),n.addRoute({name:"record",path:"/record/:id",component:e.component("CapeRecordPage")}),t!==void 0&&l.toRaw(t).forEach(i=>{const o={path:i.path,component:e.component(i.component)};i.title&&(o.meta={title:i.title}),n.addRoute(o)})},registerComponents:function(e,t){Object.keys(t).forEach(n=>{e.component(n,t[n])})},makeComponentMap(e){const t=this.builtInComponentsMap();if(e.useInlineTemplate&&(t.CapeAboutPage=aL,t.CapeFooter=fL,t.CapeHeader=uL,t.CapeHomepageLayout=hL,t.CapeNavigation=lL,t.CapeRecordCard=cL,t.CapeRecordLabel=dL,t.CapeSummaryCard=sL),e.additionalComponents!==void 0)for(const[n,i]of Object.entries(e.additionalComponents))t[n]=i;return t},builtInComponentsMap(){return{CapeFilterFieldDate:kO,CapeFilterFieldEnum:uO,CapeFilterFieldEnumIsRadio:RI,CapeFilterFieldEnumIsSelect:AI,CapeFilterFieldEnumOneOfCheckbox:YI,CapeFilterFieldEnumOneOfMultiselect:cR,CapeFilterFieldInteger:gO,CapeFilterFieldText:W1,CapeFilterFreeText:K1,CapeAboutPage:kR,CapeFooter:jR,CapeHeader:zR,CapeHomepageLayout:tL,CapeIntro:oL,CapeNavigation:OR,CapeRecordCard:YR,CapeRecordLabel:KR,CapeSummaryCard:CR,CapeAdvancedSearchToggle:aC,CapeFilters:lC,CapeFormResetButton:cC,CapeResults:DC,CapeResultsControls:OO,CapeGoTopResults:IO,CapeExternalLinkValue:LO,CapeResultsCount:kI,CapeResultsInfo:bI,CapeShowAllResultsToggle:yI,CapeSortOrder:oO,CapeDownloadCsvButton:VO,CapeDownloadJsonButton:UO,CapeFieldsTable:WO,CapeFixedNumericValue:gI,CapeLabelledContent:_I,CapeLabelledValue:AC,CapeLinkValue:mI,CapeNextRecord:uI,CapeNextResult:tI,CapePercentageValue:vI,CapePreviousRecord:sI,CapePreviousResult:iI,CapeRecordCount:oC,CapeRecordLink:GO,CapeRecordMap:JO,CapeSingleValue:V1,CapeSoftware:dR,CapeValue:MC,CapeVersion:yR,CapeHomePage:fC,CapeLoadError:pC,CapeLoading:gC,CapeNonProdWarning:TC,CapePageWidthIndicator:mR,CapeRecordPage:kC,CapeRoot:rC}}},pL={};function _L(e,t){const n=l.resolveComponent("CapeHeader"),i=l.resolveComponent("CapeRoot"),o=l.resolveComponent("CapeLoading"),s=l.resolveComponent("CapeFooter");return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createVNode(n),(l.openBlock(),l.createBlock(l.Suspense,null,{default:l.withCtx(()=>[l.createVNode(i)]),fallback:l.withCtx(()=>[l.createVNode(o)]),_:1})),l.createVNode(s)],64)}const mL=ji(pL,[["render",_L]]),vL=e=>{const t=l.createApp(mL);return t.use(b0,e),t},Li=class Li{static register(t){Li.loggers.push(t)}static clear(){Li.loggers=[]}static debug(t,n){Li.loggers.forEach(i=>i.debug(t,n))}static info(t,n){Li.loggers.forEach(i=>i.info(t,n))}static warn(t,n){Li.loggers.forEach(i=>i.warn(t,n))}static error(t,n){Li.loggers.forEach(i=>i.error(t,n))}};Ke(Li,"loggers",[]);let Hl=Li;var Dn=(e=>(e[e.Debug=3]="Debug",e[e.Info=2]="Info",e[e.Warn=1]="Warn",e[e.Error=0]="Error",e))(Dn||{});class gL{constructor(t){this.loggingLevel=t}debug(t,n){this.loggingLevel>=Dn.Debug&&console.debug(t,n??"")}info(t,n){this.loggingLevel>=Dn.Info&&console.info(t,n??"")}warn(t,n){this.loggingLevel>=Dn.Warn&&console.warn(t,n??"")}error(t,n){this.loggingLevel>=Dn.Error&&console.error(t,n??"")}}const yL={install:function(e,t){const n=new gL(t.loggingLevel);Hl.register(n)}};class SL{constructor(t,n){this.loggingLevel=t,this.appInsights=n}debug(t,n){this.loggingLevel>=Dn.Debug&&this.appInsights.trackEvent({name:t,properties:{data:n,severity:Dn.Debug}})}info(t,n){this.loggingLevel>=Dn.Info&&this.appInsights.trackEvent({name:t,properties:{data:n,severity:Dn.Info}})}warn(t,n){this.loggingLevel>=Dn.Warn&&this.appInsights.trackEvent({name:t,properties:{data:n,severity:Dn.Warn}})}error(t,n){this.loggingLevel>=Dn.Error&&this.appInsights.trackEvent({name:t,properties:{data:n,severity:Dn.Error}})}}/*! https://github.com/nevware21/ts-utils v0.12.4 */function xn(e,t){return e||t}function xt(e,t){return e[t]}var vn=void 0,qt=null,Np="",ef="function",Wl="object",_i="prototype",tf="__proto__",Yo="undefined",nf="constructor",kp="Symbol",fs="length",rf="name",rn="call",Zl="toString",Cp="getOwnPropertyDescriptor",gn=xn(Object),Pp=xt(gn,_i),N0=xn(String),$o=xt(N0,_i),Gl=xn(Math),k0=xn(Array),of=xt(k0,_i),mi=xt(of,"slice"),C0="_polyfill",P0="__nw21$polytype__";function Ot(e,t){try{return{v:e.apply(this,t)}}catch(n){return{e:n}}}function wL(e,t,n){var i=Ot(e,n);return i.e?t:i.v}var Dp;function af(e){return function(t){return typeof t===e}}function D0(e){var t="[object "+e+"]";return function(n){return!!(n&&EL(n)===t)}}function EL(e){return Pp[Zl].call(e)}function It(e){return typeof e===Yo||e===Yo}function TL(e){return e===vn}function ce(e){return e===qt||It(e)}function xp(e){return e===qt||e===vn}function bL(e){return!!e||e!==vn}function NL(e){return!Dp&&(Dp=["string","number","boolean",Yo,"symbol","bigint"]),e!==Wl&&Dp.indexOf(e)!==-1}var Re=af("string"),Le=af(ef);function On(e){return!e&&ce(e)?!1:!!e&&typeof e===Wl}var $e=xt(k0,"isArray"),kL=D0("Date"),jl=af("number"),x0=af("boolean"),Op=D0("Error");function Ji(e){return!!(e&&e.then&&Le(e.then))}function sf(e){return!(!e||wL(function(){return!(e&&0+e)},!e))}function Ip(){}function CL(){return!1}var yn=xn(N0),PL="[object Error]";function Te(e,t){var n=Np,i=Pp[Zl][rn](e);i===PL&&(e={stack:yn(e.stack),message:yn(e.message),name:yn(e.name)});try{n=JSON.stringify(e,qt,t?typeof t=="number"?t:4:vn),n=(n?n.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: "):qt)||yn(e)}catch(o){n=" - "+Te(o,t)}return i+": "+n}function Bn(e){throw new Error(e)}function Ir(e){throw new TypeError(e)}function lf(e){xp(e)&&Ir("Cannot convert undefined or null to object")}function DL(e){Re(e)||Ir("'"+Te(e)+"' is not a string")}function qn(e,t){return!!e&&Pp.hasOwnProperty[rn](e,t)}var xL=xn(xt(gn,Cp),Ip),Qi=xn(xt(gn,"hasOwn"),OL);function OL(e,t){return lf(e),qn(e,t)||!!xL(e,t)}function Xe(e,t,n){if(e&&(On(e)||Le(e))){for(var i in e)if(Qi(e,i)&&t[rn](e,i,e[i])===-1)break}}function Se(e,t,n){if(e)for(var i=e[fs]>>>0,o=0;o<i&&!(o in e&&t[rn](e,e[o],o,e)===-1);o++);}var Uo=cf;function cf(e,t,n){var i=t?t[e]:qt;return function(o){var s=(o?o[e]:qt)||i;if(s||n){var c=arguments;return(s||n).apply(o,s?mi[rn](c,1):c)}Ir('"'+yn(e)+'" not defined for '+Te(o))}}function IL(e){return function(t){return t[e]}}var RL=xn(xt(gn,Cp),Ip),uf={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"};function LL(e){var t={};if(t[uf.c]=!0,t[uf.e]=!0,e.l){t.get=function(){return e.l.v};var n=RL(e.l,"v");n&&n.set&&(t.set=function(i){e.l.v=i})}return Xe(e,function(i,o){t[uf[i]]=TL(o)?t[uf[i]]:o}),t}var vi=xt(gn,"defineProperty"),ML=xt(gn,"defineProperties");function tt(e,t,n){return vi(e,t,LL(n))}function O0(e,t,n,i,o){var s={};return Xe(e,function(c,f){ff(s,c,t?f:c),ff(s,f,c)}),i?i(s):s}function ff(e,t,n,i){vi(e,t,{value:n,enumerable:!0,writable:!1})}var AL=xn(xt(gn,"isFrozen"),CL),I0=xt(gn,"freeze");function BL(e){return e}function VL(e){return lf(e),e[tf]||qt}var Rp=xt(gn,"assign"),gi=xt(gn,"keys");function R0(e,t){if(($e(e)||On(e)||Le(e))&&!AL(e)){for(var n=0;n<t.length;n++)if(t[n]===e)return e;t.push(e),Xe(e,function(i,o){R0(o,t)}),pr(e)}return e}function ql(e){return I0?R0(e,[]):e}var pr=xn(I0,BL),Lp=xn(xt(gn,"getPrototypeOf"),VL);function FL(e){return O0(e,1,0,pr)}function YL(e){return O0(e,0,0,pr)}function $L(e){var t={};return Xe(e,function(n,i){ff(t,n,i[1]),ff(t,i[0],i[1])}),pr(t)}function UL(e){return $L(e)}var L0=YL({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}),M0="__tsUtils$gblCfg",Mp;function A0(){var e;return typeof globalThis!==Yo&&(e=globalThis),!e&&typeof self!==Yo&&(e=self),!e&&typeof window!==Yo&&(e=window),!e&&typeof global!==Yo&&(e=global),e}function df(){if(!Mp){var e=Ot(A0).v||{};Mp=e[M0]=e[M0]||{}}return Mp}var B0=xt(Gl,"min"),Kl=xt(Gl,"max"),V0=Uo("slice",$o),Rr=Uo("substring",$o),eo=cf("substr",$o,zL);function zL(e,t,n){return lf(e),n<0?Np:(t=t||0,t<0&&(t=Kl(t+e[fs],0)),It(n)?V0(e,t):V0(e,t,t+n))}function Ap(e,t){return Rr(e,0,t)}function HL(e,t){return e&&(Ot(function(){e[C0]=!0,e[P0]=t}),Ot(tt,[e,C0,{v:!0,w:!1,e:!1}]),Ot(tt,[e,P0,{v:t,w:!1,e:!1}])),e}var yi=xn(xt(gn,"create"),WL);function WL(e,t){var n=null;function i(){}if(xp(e))n={};else{var o=typeof e;o!==Wl&&o!==ef&&Ir("Prototype must be an Object or function: "+Te(e)),i[_i]=e,Ot(function(){i[tf]=e}),n=new i}return t&&Ot(ML,[n,t]),n}function _r(){return(Date.now||ZL)()}function ZL(){return new Date().getTime()}function zo(e,t,n){return e.apply(t,n)}var $t;function to(){$t=df()}function F0(e,t){var n={};return!$t&&to(),n.b=$t.lzy,vi(n,"v",{configurable:!0,get:function(){var i=zo(e,null,t);return $t.lzy||vi(n,"v",{value:i}),n.b=$t.lzy,i}}),n}var GL=xt(Gl,"random"),jL=F0(function(){for(var e=_r().toString(36).slice(2);e.length<16;)e+=GL().toString(36).slice(2);return e=e.substring(0,16),e}),Y0="_urid",qL="$nw21sym",Bp,KL=0;function XL(){if(!Bp){var e=df();Bp=e.gblSym=e.gblSym||{k:{},s:{}}}return Bp}var hf;function Vp(e){var t="_"+KL+++"_"+jL.v,n=kp+"("+e+")";function i(s,c){tt(o,s,{v:c,e:!1,w:!1})}var o=yi(null);return i("description",yn(e)),i(Zl,function(){return n+qL+t}),i("valueOf",function(){return o}),i("v",n),i("_uid",t),HL(o,"symbol")}function JL(e){var t=XL();if(!Qi(t.k,e)){var n=Vp(e),i=gi(t.s).length;n[Y0]=function(){return i+"_"+n[Zl]()},t.k[e]=n,t.s[n[Y0]()]=yn(e)}return t.k[e]}function QL(e){!hf&&(hf={});var t,n=L0[e];return n&&(t=hf[n]=hf[n]||Vp(kp+"."+n)),t}function Kn(e){return vi({toJSON:function(){return e}},"v",{value:e})}var $0="window",Xl;function ds(e,t){var n;return function(){return!$t&&to(),(!n||$t.lzy)&&(n=Kn(Ot(e,t).v)),n.v}}function Xn(e){return!$t&&to(),(!Xl||e===!1||$t.lzy)&&(Xl=Kn(Ot(A0).v||qt)),Xl.v}function Ct(e,t){var n;if(!Xl||t===!1?n=Xn(t):n=Xl.v,n&&n[e])return n[e];if(e===$0)try{return window}catch{}return qt}function U0(){return!!on()}var on=ds(Ct,["document"]);function pf(){return!!Vn()}var Vn=ds(Ct,[$0]);function eM(){return!!Lr()}var Lr=ds(Ct,["navigator"]);function tM(){return!!z0()}var z0=ds(Ct,["history"]),nM=ds(function(){return!!Ot(function(){return process&&(process.versions||{}).node}).v}),H0=ds(function(){return!!Ot(function(){return self&&self instanceof WorkerGlobalScope}).v}),hs,Fp;function _f(){return hs=Kn(Ot(Ct,[kp]).v),hs}function rM(e){var t=($t.lzy?0:hs)||_f();return t.v?t.v[e]:vn}function iM(){return!!oM()}function oM(){return!$t&&to(),(($t.lzy?0:hs)||_f()).v}function Yp(e,t){var n=L0[e];!$t&&to();var i=($t.lzy?0:hs)||_f();return i.v?i.v[n||e]:QL(e)}function Jl(e,t){!$t&&to();var n=($t.lzy?0:hs)||_f();return n.v?n.v(e):Vp(e)}function $p(e){return!$t&&to(),Fp=($t.lzy?0:Fp)||Kn(Ot(rM,["for"]).v),(Fp.v||JL)(e)}function Up(e){return!!e&&Le(e.next)}function W0(e){return!xp(e)&&Le(e[Yp(3)])}var mf;function zp(e,t,n){if(e&&(Up(e)||(!mf&&(mf=Kn(Yp(3))),e=e[mf.v]?e[mf.v]():qt),Up(e))){var i=vn,o=vn;try{for(var s=0;!(o=e.next()).done&&t[rn](n||e,o.value,s,e)!==-1;)s++}catch(c){i={e:c},e.throw&&(o=qt,e.throw(i))}finally{try{o&&!o.done&&e.return&&e.return(o)}finally{if(i)throw i.e}}}}function ps(e,t){return!It(t)&&e&&($e(t)?zo(e.push,e,t):Up(t)||W0(t)?zp(t,function(n){e.push(n)}):e.push(t)),e}var dn=Uo("indexOf",of),Ql=Uo("map",of);function vf(e,t,n){return((e?e.slice:qt)||mi).apply(e,mi[rn](arguments,1))}var aM=Uo("reduce",of),Hp,Z0=xn(xt(gn,"setPrototypeOf"),sM);function sM(e,t){var n;return!Hp&&(Hp=Kn((n={},n[tf]=[],n instanceof Array))),Hp.v?e[tf]=t:Xe(t,function(i,o){return e[i]=o}),e}function lM(e,t,n){Ot(tt,[t,rf,{v:e,c:!0,e:!1}]),t=Z0(t,n);function i(){this[nf]=t,Ot(tt,[this,rf,{v:e,c:!0,e:!1}])}return t[_i]=n===qt?yi(n):(i[_i]=n[_i],new i),t}function G0(e,t){t&&(e[rf]=t)}function j0(e,t,n){var i=Error,o=i[_i][rf],s=Error.captureStackTrace;return lM(e,function(){var c=this,f=arguments;try{Ot(G0,[i,e]);var d=zo(i,c,mi[rn](f))||c;if(d!==c){var p=Lp(c);p!==Lp(d)&&Z0(d,p)}return s&&s(d,c[nf]),t&&t(d,f),d}finally{Ot(G0,[i,o])}},i)}var Wp;function cM(e){throw Wp||(Wp=j0("UnsupportedError")),new Wp(e)}function uM(e){return function(n){return lf(n),n&&n.replace&&(n=n.replace(e,Np)),n}}var fM=uM(/^\s+|(?=\s)\s+$/g),yt=cf("trim",$o,fM),Fn=xt(Gl,"floor"),Zp,Gp,jp;function Sn(e){if(!e||typeof e!==Wl)return!1;jp||(jp=pf()?Vn():!0);var t=!1;if(e!==jp){Gp||(Zp=Function[_i][Zl],Gp=Zp[rn](gn));try{var n=Lp(e);t=!n,t||(qn(n,nf)&&(n=n[nf]),t=!!(n&&typeof n===ef&&Zp[rn](n)===Gp))}catch{}}return t}function dM(e){return e.value&&X0(e),!0}var q0=[mM,X0,gM,vM];function hM(e,t,n,i){var o;return Se(e,function(s){if(s.k===t)return o=s,-1}),o||(o={k:t,v:t},e.push(o),i(o)),o.v}function qp(e,t,n,i){var o=n.handler,s=n.path?i?n.path.concat(i):n.path:[],c={handler:n.handler,src:n.src,path:s},f=typeof t,d=!1,p=t===qt;p||(t&&f===Wl?d=Sn(t):p=NL(f));var _={type:f,isPrim:p,isPlain:d,value:t,result:t,path:s,origin:n.src,copy:function(v,y){return qp(e,v,y?c:n,y)},copyTo:function(v,y){return K0(e,v,y,c)}};return _.isPrim?o&&o[rn](n,_)?_.result:t:hM(e,t,s,function(v){tt(_,"result",{g:function(){return v.v},s:function(E){v.v=E}});for(var y=0,g=o;!(g||(y<q0.length?q0[y++]:dM))[rn](n,_);)g=qt})}function K0(e,t,n,i){if(!ce(n))for(var o in n)t[o]=qp(e,n[o],i,o);return t}function pM(e,t,n){var i={handler:n,src:t,path:[]};return K0([],e,t,i)}function _M(e,t){var n={handler:t,src:e};return qp([],e,n)}function mM(e){var t=e.value;if($e(t)){var n=e.result=[];return n.length=t.length,e.copyTo(n,t),!0}return!1}function vM(e){var t=e.value;return kL(t)?(e.result=new Date(t.getTime()),!0):!1}function gM(e){return e.type===ef}function X0(e){var t=e.value;if(t&&e.isPlain){var n=e.result={};return e.copyTo(n,t),!0}return!1}function J0(e,t){return Se(t,function(n){pM(e,n)}),e}function Q0(e,t,n,i,o,s,c){return J0(_M(e)||{},mi[rn](arguments))}function yM(e,t,n,i,o,s,c){return J0(e||{},mi[rn](arguments))}var eS=Uo("split",$o);function tS(e,t,n){if(e&&t){var i=eS(t,"."),o=i.pop();Se(i,function(s){ce(e[s])&&(e[s]={}),e=e[s]}),e[o]=n}}var SM=IL(fs),Kp;function Si(){return!$t&&to(),(!Kp||$t.lzy)&&(Kp=Kn(Ot(Ct,["performance"]).v)),Kp.v}var nS=xt(Gl,"round"),wM=xn(xt(gn,Cp),Ip),rS=cf("endsWith",$o,EM);function EM(e,t,n){DL(e);var i=Re(t)?t:yn(t),o=!It(n)&&n<e[fs]?n:e[fs];return Rr(e,o-i[fs],o)===i}var wn=Uo("indexOf",$o),Xp="ref",Jp="unref",Qp="hasRef",TM="enabled";function bM(e,t,n){var i=!0,o=e?t(qt):qt,s;function c(){return i=!1,o&&o[Jp]&&o[Jp](),s}function f(){o&&n(o),o=qt}function d(){return o=t(o),i||c(),s}function p(_){!_&&o&&f(),_&&!o&&d()}return s={cancel:f,refresh:d},s[Qp]=function(){return o&&o[Qp]?o[Qp]():i},s[Xp]=function(){return i=!0,o&&o[Xp]&&o[Xp](),s},s[Jp]=c,s=vi(s,TM,{get:function(){return!!o},set:p}),{h:s,dn:function(){o=qt}}}var NM,kM;function CM(e){var t=Le(e)?e:NM;if(!t){var n=df().tmOut||[];$e(n)&&n.length>0&&Le(n[0])&&(t=n[0])}return t||setTimeout}function PM(e){var t=Le(e)?e:kM;if(!t){var n=df().tmOut||[];$e(n)&&n.length>1&&Le(n[1])&&(t=n[1])}return t||clearTimeout}function iS(e,t,n){var i=$e(t),o=i?t.length:0,s=CM(o>0?t[0]:i?vn:t),c=PM(o>1?t[1]:vn),f=n[0];n[0]=function(){d.dn(),zo(f,vn,mi[rn](arguments))};var d=bM(e,function(p){if(p){if(p.refresh)return p.refresh(),p;zo(c,vn,[p])}return zo(s,vn,n)},function(p){zo(c,vn,[p])});return d.h}function Jn(e,t){return iS(!0,vn,mi[rn](arguments))}function DM(e,t){return iS(!1,vn,mi[rn](arguments))}var gf,yf="constructor",wi="prototype",Sf="function",wf="_dynInstFuncs",e_="_isDynProxy",_s="_dynClass",xM="_dynCls$",t_="_dynInstChk",ec=t_,oS="_dfOpts",aS="_unknown_",n_="__proto__",Ef="_dyn"+n_,sS="__dynProto$Gbl",r_="_dynInstProto",Tf="useBaseInst",i_="setInstFuncs",o_=Object,tc=o_.getPrototypeOf,lS=o_.getOwnPropertyNames,cS=Xn(),a_=cS[sS]||(cS[sS]={o:(gf={},gf[i_]=!0,gf[Tf]=!0,gf),n:1e3});function bf(e){return e&&(e===o_[wi]||e===Array[wi])}function s_(e){return bf(e)||e===Function[wi]}function Ho(e){var t;if(e){if(tc)return tc(e);var n=e[n_]||e[wi]||(e[yf]?e[yf][wi]:null);t=e[Ef]||n,qn(e,Ef)||(delete e[r_],t=e[Ef]=e[r_]||e[Ef],e[r_]=n)}return t}function Nf(e,t){var n=[];if(lS)n=lS(e);else for(var i in e)typeof i=="string"&&qn(e,i)&&n.push(i);if(n&&n.length>0)for(var o=0;o<n.length;o++)t(n[o])}function l_(e,t,n){return t!==yf&&typeof e[t]===Sf&&(n||qn(e,t))&&t!==n_&&t!==wi}function kf(e){Ir("DynamicProto: "+e)}function OM(e){var t=yi(null);return Nf(e,function(n){!t[n]&&l_(e,n,!1)&&(t[n]=e[n])}),t}function c_(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function IM(e,t,n,i){function o(d,p,_){var v=p[_];if(v[e_]&&i){var y=d[wf]||{};y[ec]!==!1&&(v=(y[p[_s]]||{})[_]||v)}return function(){return v.apply(d,arguments)}}var s=yi(null);Nf(n,function(d){s[d]=o(t,n,d)});for(var c=Ho(e),f=[];c&&!s_(c)&&!c_(f,c);)Nf(c,function(d){!s[d]&&l_(c,d,!tc)&&(s[d]=o(t,c,d))}),f.push(c),c=Ho(c);return s}function RM(e,t,n,i){var o=null;if(e&&qn(n,_s)){var s=e[wf]||yi(null);if(o=(s[n[_s]]||yi(null))[t],o||kf("Missing ["+t+"] "+Sf),!o[t_]&&s[ec]!==!1){for(var c=!qn(e,t),f=Ho(e),d=[];c&&f&&!s_(f)&&!c_(d,f);){var p=f[t];if(p){c=p===i;break}d.push(f),f=Ho(f)}try{c&&(e[t]=o),o[t_]=1}catch{s[ec]=!1}}}return o}function LM(e,t,n){var i=t[e];return i===n&&(i=Ho(t)[e]),typeof i!==Sf&&kf("["+e+"] is not a "+Sf),i}function MM(e,t,n,i,o){function s(d,p){var _=function(){var v=RM(this,p,d,_)||LM(p,d,_);return v.apply(this,arguments)};return _[e_]=1,_}if(!bf(e)){var c=n[wf]=n[wf]||yi(null);if(!bf(c)){var f=c[t]=c[t]||yi(null);c[ec]!==!1&&(c[ec]=!!o),bf(f)||Nf(n,function(d){l_(n,d,!1)&&n[d]!==i[d]&&(f[d]=n[d],delete n[d],(!qn(e,d)||e[d]&&!e[d][e_])&&(e[d]=s(e,d)))})}}}function AM(e,t){if(tc){for(var n=[],i=Ho(t);i&&!s_(i)&&!c_(n,i);){if(i===e)return!0;n.push(i),i=Ho(i)}return!1}return!0}function u_(e,t){return qn(e,wi)?e.name||t||aS:((e||{})[yf]||{}).name||t||aS}function St(e,t,n,i){qn(e,wi)||kf("theClass is an invalid class definition.");var o=e[wi];AM(o,t)||kf("["+u_(e)+"] not in hierarchy of ["+u_(t)+"]");var s=null;qn(o,_s)?s=o[_s]:(s=xM+u_(e,"_")+"$"+a_.n,a_.n++,o[_s]=s);var c=St[oS],f=!!c[Tf];f&&i&&i[Tf]!==void 0&&(f=!!i[Tf]);var d=OM(t),p=IM(o,t,d,f);n(t,p);var _=!!tc&&!!c[i_];_&&i&&(_=!!i[i_]),MM(o,s,t,d,_!==!1)}St[oS]=a_.o;var uS="function",fS="object",f_="undefined",Mr="prototype",d_=Object,BM=d_[Mr];(Xn()||{}).Symbol,(Xn()||{}).Reflect;var dS="hasOwnProperty",VM=function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)BM[dS].call(t,o)&&(e[o]=t[o])}return e},En=Rp||VM,h_=function(e,t){return h_=d_.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i[dS](o)&&(n[o]=i[o])},h_(e,t)};function Ei(e,t){typeof t!==uS&&t!==null&&Ir("Class extends value "+String(t)+" is not a constructor or null"),h_(e,t);function n(){this.constructor=e}e[Mr]=t===null?yi(t):(n[Mr]=t[Mr],new n)}function hS(e,t){for(var n=0,i=t.length,o=e.length;n<i;n++,o++)e[o]=t[n];return e}var pS=FL,FM=UL,no=pS({NONE:0,PENDING:3,INACTIVE:1,ACTIVE:2}),ms="toLowerCase",Ve="length",Cf="warnToConsole",nc="throwInternal",Wo="watch",Zo="apply",ot="push",vs="splice",Ut="logger",Go="cancel",rc="initialize",ro="identifier",Pf="removeNotificationListener",Df="addNotificationListener",Ar="isInitialized",xf="getNotifyMgr",ic="getPlugin",jo="name",Tn="processNext",_S="getProcessTelContext",qo="value",gs="enabled",mS="stopPollingInternalLogs",Ko="unload",Of="onComplete",p_="version",vS="loggingLevelConsole",Xo="createNew",Ti="teardown",If="messageId",Jo="message",bi="diagLog",Rf="_doTeardown",oc="update",Br="getNext",ac="setNextPlugin",__="userAgent",ys="split",Qo="replace",io="type",gS="evtName",Ni="status",YM="indexOf",yS="getAllResponseHeaders",m_="isChildEvt",mr="data",Ss="getCtx",Vr="setCtx",SS="itemsReceived",Lf="headers",sc="urlString",ws="timeout",v_="traceFlags",g_="getAttribute",y_;function $M(e,t){y_||(y_=j0("AggregationError",function(i,o){o[Ve]>1&&(i.errors=o[1])}));var n=e;throw Se(t,function(i,o){n+=`
57
57
  `.concat(o," > ").concat(Te(i))}),new y_(n,t||[])}/*!
58
58
  * NevWare21 Solutions LLC - ts-async, 0.5.4
59
59
  * https://github.com/nevware21/ts-async
@@ -66,4 +66,4 @@ ge.version="2.30.1",BC(kt),ge.fn=ue,ge.min=ND,ge.max=kD,ge.now=CD,ge.utc=Pr,ge.u
66
66
  `):t=e.src||""),t}function LV(e){var t,n=e.obj;if(n&&n[Ye]>0){t=[];var i=0,o=!1,s=0;Se(n,function(w){if(o||VV(w)){var T=yn(w);o=!0;var b=FV(T,i);b&&(s+=b[hd],t.push(b),i++)}});var c=32*1024;if(s>c)for(var f=0,d=t[Ye]-1,p=0,_=f,v=d;f<d;){var y=t[f][hd],g=t[d][hd];if(p+=y+g,p>c){var E=v-_+1;t.splice(_,E);break}_=f,v=d,f++,d--}}return t}function Td(e){var t="";if(e&&(t=e.typeName||e[Hr]||"",!t))try{var n=/function (.{1,200})\(/,i=n.exec(e.constructor[Tc]());t=i&&i[Ye]>1?i[1]:""}catch{}return t}function Um(e){if(e)try{if(!Re(e)){var t=Td(e),n=$m(e,!1);return(!n||n==="{}")&&(e[Vs]&&(e=e[Vs],t=Td(e)),n=$m(e,!0)),wn(n,t)!==0&&t!=="String"?t+":"+n:n}}catch{}return""+(e||"")}var nr=function(){function e(t,n,i,o,s,c){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var f=this;f.ver=2,OV(n)?(f[kc]=n[kc]||[],f[Wr]=n[Wr],f[Ci]=n[Ci],n[Cc]&&(f[Cc]=n[Cc]),n.id&&(f.id=n.id,n[Wr].id=n.id),n[Om]&&(f[Om]=n[Om]),ce(n.isManual)||(f.isManual=n.isManual)):(i||(i={}),c&&(i.id=c),f[kc]=[mE(t,n,i)],f[Wr]=ca(t,i),f[Ci]=ua(t,o),s&&(f[Cc]=s),c&&(f.id=c))}return e.CreateAutoException=function(t,n,i,o,s,c,f,d){var p=Td(s||c||t);return{message:hE(t,p),url:n,lineNumber:i,columnNumber:o,error:Um(s||c||t),evt:Um(c||t),typeName:p,stackDetails:_E(f||s||c),errorSrc:d}},e.CreateFromInterface=function(t,n,i,o){var s=n[kc]&&Ql(n[kc],function(f){return BV(t,f)}),c=new e(t,En(En({},n),{exceptions:s}),i,o);return c},e.prototype.toInterface=function(){var t=this,n=t.exceptions,i=t.properties,o=t.measurements,s=t.severityLevel,c=t.problemGroup,f=t.id,d=t.isManual,p=n instanceof Array&&Ql(n,function(_){return _.toInterface()})||void 0;return{ver:"4.0",exceptions:p,severityLevel:s,properties:i,measurements:o,problemGroup:c,id:f,isManual:d}},e.CreateSimpleException=function(t,n,i,o,s,c){var f;return{exceptions:[(f={},f[_d]=!0,f.message=t,f.stack=s,f.typeName=n,f)]}},e.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",e.dataType="ExceptionData",e.formatError=Um,e}(),MV=pr({id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2});function AV(){var e=this,t=$e(e[As])&&Ql(e[As],function(i){return $V(i)}),n={id:e.id,outerId:e.outerId,typeName:e[pd],message:e[bc],hasFullStack:e[_d],stack:e[tr],parsedStack:t||void 0};return n}function mE(e,t,n){var i,o,s,c,f,d,p,_;if(xV(t))c=t[pd],f=t[bc],p=t[tr],_=t[As]||[],d=t[_d];else{var v=t,y=v&&v.evt;Op(v)||(v=v[Vs]||y||v),c=Ht(e,Td(v))||zr,f=Kw(e,hE(t||v,c))||zr;var g=t[Fm]||_E(t);_=LV(g),$e(_)&&Ql(_,function(E){E[md]=Ht(e,E[md]),E[Pi]=Ht(e,E[Pi])}),p=tV(e,RV(g)),d=$e(_)&&_[Ye]>0,n&&(n[pd]=n[pd]||c)}return i={},i[vd]=MV,i.id=o,i.outerId=s,i.typeName=c,i.message=f,i[_d]=d,i.stack=p,i.parsedStack=_,i.toInterface=AV,i}function BV(e,t){var n=$e(t[As])&&Ql(t[As],function(o){return YV(o)})||t[As],i=mE(e,En(En({},t),{parsedStack:n}));return i}function vE(e,t){var n=t[Nc](kV);if(n&&n[Ye]>=4)e[Pi]=n[1],e[Bs]=parseInt(n[2]);else{var i=t[Nc](CV);i&&i[Ye]>=3?(e[Pi]=i[1],e[Bs]=parseInt(i[2])):e[Pi]=t}}function gE(e,t,n){var i=e[Pi];t.fn&&n&&n[Ye]>t.fn&&(t.ln&&n[Ye]>t.ln?(i=yt(n[t.fn]||""),e[Bs]=parseInt(yt(n[t.ln]||""))||0):i=yt(n[t.fn]||"")),i&&vE(e,i)}function VV(e){var t=!1;if(e&&Re(e)){var n=yt(e);n&&(t=wV.test(n))}return t}var yE=pr({level:1,method:1,assembly:0,fileName:0,line:0});function FV(e,t){var n,i;if(e&&Re(e)&&yt(e)){i=(n={},n[vd]=yE,n.level=t,n.assembly=yt(e),n.method=cE,n.fileName="",n.line=0,n.sizeInBytes=0,n);for(var o=0;o<dE[Ye];){var s=dE[o];if(s.chk&&!s.chk(e))break;s.pre&&(e=s.pre(e));var c=e[Nc](s.re);if(c&&c[Ye]>=s.len){s.m&&(i.method=yt(c[s.m]||cE)),s.hdl?s.hdl(i,s,c):s.fn&&(s.ln?(i[Pi]=yt(c[s.fn]||""),i[Bs]=parseInt(yt(c[s.ln]||""))||0):vE(i,c[s.fn]||""));break}o++}}return SE(i)}function YV(e){var t,n=(t={},t[vd]=yE,t.level=e.level,t.method=e.method,t.assembly=e[md],t.fileName=e[Pi],t.line=e[Bs],t.sizeInBytes=0,t);return SE(n)}function SE(e){var t=SV;return e&&(t+=e.method[Ye],t+=e.assembly[Ye],t+=e.fileName[Ye],t+=e.level.toString()[Ye],t+=e.line.toString()[Ye],e[hd]=t),e}function $V(e){return{level:e.level,method:e.method,assembly:e[md],fileName:e[Pi],line:e[Bs]}}var UV=function(){function e(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0}return e}(),da=function(){function e(t,n,i,o,s,c,f,d,p){this.aiDataContract={ver:1,metrics:1,properties:0};var _=this;_.ver=2;var v=new UV;v[Ms]=o>0?o:void 0,v.max=isNaN(c)||c===null?void 0:c,v.min=isNaN(s)||s===null?void 0:s,v[Hr]=Ht(t,n)||zr,v.value=i,v.stdDev=isNaN(f)||f===null?void 0:f,_.metrics=[v],_[Wr]=ca(t,d),_[Ci]=ua(t,p)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",e.dataType="MetricData",e}(),xc="";function vo(e){(isNaN(e)||e<0)&&(e=0),e=nS(e);var t=xc+e%1e3,n=xc+Fn(e/1e3)%60,i=xc+Fn(e/(1e3*60))%60,o=xc+Fn(e/(1e3*60*60))%24,s=Fn(e/(1e3*60*60*24));return t=t[Ye]===1?"00"+t:t[Ye]===2?"0"+t:t,n=n[Ye]<2?"0"+n:n,i=i[Ye]<2?"0"+i:i,o=o[Ye]<2?"0"+o:o,(s>0?s+".":xc)+o+":"+i+":"+n+"."+t}function zV(e,t,n,i,o){return!o&&Re(e)&&(e==="Script error."||e==="Script error")}var go=function(){function e(t,n,i,o,s,c,f){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var d=this;d.ver=2,d.id=nV(t,f),d.url=yd(t,i),d[Hr]=Ht(t,n)||zr,isNaN(o)||(d[gd]=vo(o)),d[Wr]=ca(t,s),d[Ci]=ua(t,c)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",e.dataType="PageviewData",e}(),ha=function(){function e(t,n,i,o,s,c,f,d,p,_,v,y){p===void 0&&(p="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 g=this;g.ver=2,g.id=n,g[gd]=vo(s),g.success=c,g.resultCode=f+"",g.type=Ht(t,p);var E=fV(t,i,d,o);g.data=yd(t,o)||E.data,g.target=Ht(t,E.target),_&&(g.target="".concat(g.target," | ").concat(_)),g[Hr]=Ht(t,E[Hr]),g[Wr]=ca(t,v),g[Ci]=ua(t,y)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",e.dataType="RemoteDependencyData",e}(),Fs=function(){function e(t,n,i,o,s){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var c=this;c.ver=2,n=n||zr,c[bc]=Kw(t,n),c[Wr]=ca(t,o),c[Ci]=ua(t,s),i&&(c[Cc]=i)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Message",e.dataType="MessageData",e}(),Ys=function(){function e(t,n,i,o,s,c,f){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 d=this;d.ver=2,d.url=yd(t,i),d[Hr]=Ht(t,n)||zr,d[Wr]=ca(t,s),d[Ci]=ua(t,c),f&&(d.domProcessing=f.domProcessing,d[gd]=f[gd],d.networkConnect=f.networkConnect,d.perfTotal=f.perfTotal,d.receivedResponse=f.receivedResponse,d.sentRequest=f.sentRequest)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",e.dataType="PageviewPerformanceData",e}(),pa=function(){function e(t,n){this.aiDataContract={baseType:1,baseData:1},this.baseType=t,this.baseData=n}return e}();function yo(e){var t="ai."+e+".";return function(n){return t+n}}var Oc=yo("application"),Kt=yo("device"),bd=yo("location"),$s=yo("operation"),zm=yo("session"),So=yo("user"),_a=yo("cloud"),Ic=yo("internal"),wE=function(e){Ei(t,e);function t(){return e.call(this)||this}return t}(aA({applicationVersion:Oc("ver"),applicationBuild:Oc("build"),applicationTypeId:Oc("typeId"),applicationId:Oc("applicationId"),applicationLayer:Oc("layer"),deviceId:Kt("id"),deviceIp:Kt("ip"),deviceLanguage:Kt("language"),deviceLocale:Kt("locale"),deviceModel:Kt("model"),deviceFriendlyName:Kt("friendlyName"),deviceNetwork:Kt("network"),deviceNetworkName:Kt("networkName"),deviceOEMName:Kt("oemName"),deviceOS:Kt("os"),deviceOSVersion:Kt("osVersion"),deviceRoleInstance:Kt("roleInstance"),deviceRoleName:Kt("roleName"),deviceScreenResolution:Kt("screenResolution"),deviceType:Kt("type"),deviceMachineName:Kt("machineName"),deviceVMName:Kt("vmName"),deviceBrowser:Kt("browser"),deviceBrowserVersion:Kt("browserVersion"),locationIp:bd("ip"),locationCountry:bd("country"),locationProvince:bd("province"),locationCity:bd("city"),operationId:$s("id"),operationName:$s("name"),operationParentId:$s("parentId"),operationRootId:$s("rootId"),operationSyntheticSource:$s("syntheticSource"),operationCorrelationVector:$s("correlationVector"),sessionId:zm("id"),sessionIsFirst:zm("isFirst"),sessionIsNew:zm("isNew"),userAccountAcquisitionDate:So("accountAcquisitionDate"),userAccountId:So("accountId"),userAgent:So("userAgent"),userId:So("id"),userStoreRegion:So("storeRegion"),userAuthUserId:So("authUserId"),userAnonymousUserAcquisitionDate:So("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:So("authUserAcquisitionDate"),cloudName:_a("name"),cloudRole:_a("role"),cloudRoleVer:_a("roleVer"),cloudRoleInstance:_a("roleInstance"),cloudEnvironment:_a("environment"),cloudLocation:_a("location"),cloudDeploymentUnit:_a("deploymentUnit"),internalNodeName:Ic("nodeName"),internalSdkVersion:Ic("sdkVersion"),internalAgentVersion:Ic("agentVersion"),internalSnippet:Ic("snippet"),internalSdkSrc:Ic("sdkSrc")}));function wo(e,t,n,i,o,s){n=Ht(i,n)||zr,(ce(e)||ce(t)||ce(n))&&Bn("Input doesn't contain all required fields");var c="";e[km]&&(c=e[km],delete e[km]);var f={name:n,time:Ns(new Date),iKey:c,ext:s||{},tags:[],data:{},baseType:t,baseData:e};return ce(o)||Xe(o,function(d,p){f.data[d]=p}),f}var $n={UserExt:"user",DeviceExt:"device",TraceExt:"trace",WebExt:"web",AppExt:"app",OSExt:"os"},wt=new wE;function Rc(e){var t=null;if(Le(Event))t=new Event(e);else{var n=on();n&&n.createEvent&&(t=n.createEvent("Event"),t.initEvent(e,!0,!0))}return t}function EE(e,t){Is(e,null,null,t)}function HV(e){var t=on(),n=Lr(),i=!1,o=[],s=1;n&&!ce(n.onLine)&&!n.onLine&&(s=2);var c=0,f=y(),d=ho(Qn("OfflineListener"),e);try{if(_(Vn())&&(i=!0),t){var p=t.body||t;p.ononline&&_(p)&&(i=!0)}}catch{i=!1}function _(M){var z=!1;return M&&(z=ki(M,"online",w,d),z&&ki(M,"offline",T,d)),z}function v(){return f}function y(){return!(c===2||s===2)}function g(){var M=y();f!==M&&(f=M,Se(o,function(z){var G={isOnline:f,rState:s,uState:c};try{z(G)}catch{}}))}function E(M){c=M,g()}function w(){s=1,g()}function T(){s=2,g()}function b(){var M=Vn();if(M&&i){if(EE(M,d),t){var z=t.body||t;It(z.ononline)||EE(z,d)}i=!1}}function C(M){return o.push(M),{rm:function(){var z=o.indexOf(M);if(z>-1)return o.splice(z,1)}}}return{isOnline:v,isListening:function(){return i},unload:b,addListener:C,setOnlineState:E}}var Nd="AppInsightsPropertiesPlugin",TE="AppInsightsChannelPlugin",bE="ApplicationInsightsAnalytics",kd="toString",Hm="isStorageUseDisabled",Us="_addHook",an="core",Eo="dataType",ma="envelopeType",Un="diagLog",va="track",Cd="trackPageView",Wm="trackPreviousPageVisit",ga="sendPageViewInternal",zs="startTime",Lc="properties",Zr="duration",Zm="sendPageViewPerformanceInternal",Gm="populatePageViewPerformanceEvent",Hs="href",NE="sendExceptionInternal",Mc="error",jm="lineNumber",qm="columnNumber",Km="CreateAutoException",Pd="addTelemetryInitializer",WV="overridePageViewDuration",Xm="autoExceptionInstrumented",kE="autoTrackPageVisitTime",CE="isBrowserLinkTrackingEnabled",Ac="length",PE="enableAutoRouteTracking",DE="enableUnhandledPromiseRejectionTracking",Jm="autoUnhandledPromiseInstrumented",Qm="getEntriesByType",xE="isPerformanceTimingSupported",OE="getPerformanceTiming",Dd="navigationStart",ev="shouldCollectDuration",IE="isPerformanceTimingDataReady",Bc="responseStart",ZV="requestStart",xd="loadEventEnd",tv="responseEnd",Od="connectEnd",GV=function(){function e(t,n,i,o){St(e,this,function(s){var c=null,f=[],d=!1,p=!1,_;i&&(_=i.logger);function v(E){i&&i.flush(E,function(){})}function y(){c||(c=Jn(function(){c=null;var E=f.slice(0),w=!1;f=[],Se(E,function(T){T()?w=!0:f.push(T)}),f[Ac]>0&&y(),w&&v(!0)},100))}function g(E){f.push(E),y()}s[Cd]=function(E,w){var T=E.name;if(ce(T)||typeof T!="string"){var b=on();T=E.name=b&&b.title||""}var C=E.uri;if(ce(C)||typeof C!="string"){var M=$r();C=E.uri=M&&M[Hs]||""}if(!p){var z=Si(),G=z&&z[Qm]&&z[Qm]("navigation");if(G&&G[0]&&!It(z.timeOrigin)){var oe=G[0].loadEventStart;E[zs]=new Date(z.timeOrigin+oe)}else{var R=(w||E[Lc]||{})[Zr]||0;E[zs]=new Date(new Date().getTime()-R)}p=!0}if(!o[xE]()){t[ga](E,w),v(!0),H0()||pe(_,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 F=!1,Q,A=o[OE]()[Dd];A>0&&(Q=In(A,+new Date),o[ev](Q)||(Q=void 0));var B;!ce(w)&&!ce(w[Zr])&&(B=w[Zr]),(n||!isNaN(B))&&(isNaN(B)&&(w||(w={}),w[Zr]=Q),t[ga](E,w),v(!0),F=!0);var ae=6e4;w||(w={}),g(function(){var he=!1;try{if(o[IE]()){he=!0;var P={name:T,uri:C};o[Gm](P),!P.isValid&&!F?(w[Zr]=Q,t[ga](E,w)):(F||(w[Zr]=P.durationMs,t[ga](E,w)),d||(t[Zm](P,w),d=!0))}else A>0&&In(A,+new Date)>ae&&(he=!0,F||(w[Zr]=ae,t[ga](E,w)))}catch(V){pe(_,1,38,"trackPageView failed on page load calculation: "+ft(V),{exception:Te(V)})}return he})},s.teardown=function(E,w){if(c){c.cancel(),c=null;var T=f.slice(0);f=[],Se(T,function(b){b()})}}})}return e.__ieDyn=1,e}(),jV=36e5,RE=["googlebot","adsbot-google","apis-google","mediapartners-google"];function LE(){var e=Si();return e&&!!e.timing}function qV(){var e=Si();return e&&e.getEntriesByType&&e.getEntriesByType("navigation")[Ac]>0}function KV(){var e=Si(),t=e?e.timing:0;return t&&t.domainLookupStart>0&&t[Dd]>0&&t[Bc]>0&&t[ZV]>0&&t[xd]>0&&t[tv]>0&&t[Od]>0&&t.domLoading>0}function ME(){return LE()?Si().timing:null}function XV(){return qV()?Si()[Qm]("navigation")[0]:null}function JV(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Lr()||{},i=n.userAgent,o=!1;if(i)for(var s=0;s<RE[Ac];s++)o=o||wn(i.toLowerCase(),RE[s])!==-1;if(o)return!1;for(var s=0;s<e[Ac];s++)if(e[s]<0||e[s]>=jV)return!1;return!0}var QV=function(){function e(t){var n=na(t);St(e,this,function(i){i[Gm]=function(o){o.isValid=!1;var s=XV(),c=ME(),f=0,d=0,p=0,_=0,v=0;(s||c)&&(s?(f=s[Zr],d=s[zs]===0?s[Od]:In(s[zs],s[Od]),p=In(s.requestStart,s[Bc]),_=In(s[Bc],s[tv]),v=In(s.responseEnd,s[xd])):(f=In(c[Dd],c[xd]),d=In(c[Dd],c[Od]),p=In(c.requestStart,c[Bc]),_=In(c[Bc],c[tv]),v=In(c.responseEnd,c[xd])),f===0?pe(n,2,10,"error calculating page view performance.",{total:f,network:d,request:p,response:_,dom:v}):i[ev](f,d,p,_,v)?f<Fn(d)+Fn(p)+Fn(_)+Fn(v)?pe(n,2,8,"client performance math error.",{total:f,network:d,request:p,response:_,dom:v}):(o.durationMs=f,o.perfTotal=o[Zr]=vo(f),o.networkConnect=vo(d),o.sentRequest=vo(p),o.receivedResponse=vo(_),o.domProcessing=vo(v),o.isValid=!0):pe(n,2,45,"Invalid page load duration value. Browser perf data won't be sent.",{total:f,network:d,request:p,response:_,dom:v}))},i[OE]=ME,i[xE]=LE,i[IE]=KV,i[ev]=JV})}return e.__ieDyn=1,e}(),eF=function(){function e(t,n){var i="prevPageVisitData";St(e,this,function(o){o[Wm]=function(f,d){try{var p=s(f,d);p&&n(p.pageName,p.pageUrl,p.pageVisitTime)}catch(_){ra(t,"Auto track page visit time failed, metric will not be collected: "+Te(_))}};function s(f,d){var p=null;try{if(p=c(),Dc()){Vm(t,i)!=null&&Bn("Cannot call startPageVisit consecutively without first calling stopPageVisit");var _=vr().stringify(new tF(f,d));aE(t,i,_)}}catch(v){ra(t,"Call to restart failed: "+Te(v)),p=null}return p}function c(){var f=null;try{if(Dc()){var d=_r(),p=Vm(t,i);p&&fc()&&(f=vr().parse(p),f.pageVisitTime=d-f.pageVisitStartTime,sE(t,i))}}catch(_){ra(t,"Stop page visit timer failed: "+Te(_)),f=null}return f}tt(o,"_logger",{g:function(){return t}}),tt(o,"pageVisitTimeTrackingHandler",{g:function(){return n}})})}return e.__ieDyn=1,e}(),tF=function(){function e(t,n){this.pageVisitStartTime=_r(),this.pageName=t,this.pageUrl=n}return e}(),AE=function(){function e(t,n){var i=this,o={};i.start=function(s){typeof o[s]<"u"&&pe(t,2,62,"start was called more than once for this event without calling stop.",{name:s,key:s},!0),o[s]=+new Date},i.stop=function(s,c,f,d){var p=o[s];if(isNaN(p))pe(t,2,63,"stop was called without a corresponding start.",{name:s,key:s},!0);else{var _=+new Date,v=In(p,_);i.action(s,c,v,f,d)}delete o[s],o[s]=void 0}}return e}(),Nn,nF="event";function Vc(e,t){e&&e.dispatchEvent&&t&&e.dispatchEvent(t)}function rF(e){if(e&&e.reason){var t=e.reason;return!Re(t)&&Le(t[kd])?t[kd]():Te(t)}return e||""}var BE=6e4,iF=ql((Nn={sessionRenewalMs:QS(VE,30*60*1e3),sessionExpirationMs:QS(VE,24*60*60*1e3),disableExceptionTracking:zt()},Nn[kE]=zt(),Nn[WV]=zt(),Nn[DE]=zt(),Nn[Jm]=!1,Nn.samplingPercentage=Xf(oF,100),Nn[Hm]=zt(),Nn[CE]=zt(),Nn[PE]=zt(),Nn.namePrefix=jA(),Nn.enableDebug=zt(),Nn.disableFlushOnBeforeUnload=zt(),Nn.disableFlushOnUnload=zt(!1,"disableFlushOnBeforeUnload"),Nn.expCfg=gr({inclScripts:!1,expLog:void 0,maxLogs:50}),Nn));function VE(e,t){return e=e||t,e<BE&&(e=BE),+e}function oF(e){return!isNaN(e)&&e>0&&e<=100}function aF(e){It(e[Hm])||(e[Hm]?dV():hV())}var sF=function(e){Ei(t,e);function t(){var n=e.call(this)||this;n.identifier=bE,n.priority=180,n.autoRoutePVDelay=500;var i,o,s,c,f,d,p,_,v,y,g,E,w,T,b,C,M,z,G,oe,R;return St(t,n,function(F,Q){var A=Q[Us];_e(),F.getCookieMgr=function(){return tm(F[an])},F.processTelemetry=function(N,U){F.processNext(N,U)},F.trackEvent=function(N,U){try{var k=wo(N,mo[Eo],mo[ma],F[Un](),U);F[an][va](k)}catch(H){re(2,39,"trackTrace failed, trace will not be collected: "+ft(H),{exception:Te(H)})}},F.startTrackEvent=function(N){try{i.start(N)}catch(U){re(1,29,"startTrackEvent failed, event will not be collected: "+ft(U),{exception:Te(U)})}},F.stopTrackEvent=function(N,U,k){try{i.stop(N,void 0,U,k)}catch(H){re(1,30,"stopTrackEvent failed, event will not be collected: "+ft(H),{exception:Te(H)})}},F.trackTrace=function(N,U){try{var k=wo(N,Fs[Eo],Fs[ma],F[Un](),U);F[an][va](k)}catch(H){re(2,39,"trackTrace failed, trace will not be collected: "+ft(H),{exception:Te(H)})}},F.trackMetric=function(N,U){try{var k=wo(N,da[Eo],da[ma],F[Un](),U);F[an][va](k)}catch(H){re(1,36,"trackMetric failed, metric will not be collected: "+ft(H),{exception:Te(H)})}},F[Cd]=function(N,U){try{var k=N||{};s[Cd](k,En(En(En({},k.properties),k.measurements),U)),C&&f[Wm](k.name,k.uri)}catch(H){re(1,37,"trackPageView failed, page view will not be collected: "+ft(H),{exception:Te(H)})}},F[ga]=function(N,U,k){var H=on();if(H&&(N.refUri=N.refUri===void 0?H.referrer:N.refUri),ce(N[zs])){var ie=(U||N[Lc]||{})[Zr]||0;N[zs]=new Date(new Date().getTime()-ie)}var O=wo(N,go[Eo],go[ma],F[Un](),U,k);F[an][va](O)},F[Zm]=function(N,U,k){var H=wo(N,Ys[Eo],Ys[ma],F[Un](),U,k);F[an][va](H)},F.trackPageViewPerformance=function(N,U){var k=N||{};try{c[Gm](k),F[Zm](k,U)}catch(H){re(1,37,"trackPageViewPerformance failed, page view will not be collected: "+ft(H),{exception:Te(H)})}},F.startTrackPage=function(N){try{if(typeof N!="string"){var U=on();N=U&&U.title||""}o.start(N)}catch(k){re(1,31,"startTrackPage failed, page view may not be collected: "+ft(k),{exception:Te(k)})}},F.stopTrackPage=function(N,U,k,H){try{if(typeof N!="string"){var ie=on();N=ie&&ie.title||""}if(typeof U!="string"){var O=$r();U=O&&O[Hs]||""}o.stop(N,U,k,H),C&&f[Wm](N,U)}catch(X){re(1,32,"stopTrackPage failed, page view will not be collected: "+ft(X),{exception:Te(X)})}},F[NE]=function(N,U,k){var H=N&&(N.exception||N[Mc])||Op(N)&&N||{name:N&&typeof N,message:N||zr};N=N||{};var ie=new nr(F[Un](),H,N[Lc]||U,N.measurements,N.severityLevel,N.id).toInterface(),O=on();if(O&&(M!=null&&M.inclScripts)){var X=vB(O);ie[Lc].exceptionScripts=JSON.stringify(X)}if(M!=null&&M.expLog){var J=M.expLog();J&&J.logs&&$e(J.logs)&&(ie[Lc].exceptionLog=J.logs.slice(0,M.maxLogs).join(`
67
67
  `))}var fe=wo(ie,nr[Eo],nr[ma],F[Un](),U,k);F[an][va](fe)},F.trackException=function(N,U){N&&!N.exception&&N[Mc]&&(N.exception=N[Mc]);try{F[NE](N,U)}catch(k){re(1,35,"trackException failed, exception will not be collected: "+ft(k),{exception:Te(k)})}},F._onerror=function(N){var U=N&&N[Mc],k=N&&N.evt;try{if(!k){var H=Vn();H&&(k=H[nF])}var ie=N&&N.url||(on()||{}).URL,O=N.errorSrc||"window.onerror@"+ie+":"+(N[jm]||0)+":"+(N[qm]||0),X={errorSrc:O,url:ie,lineNumber:N[jm]||0,columnNumber:N[qm]||0,message:N.message};zV(N.message,N.url,N.lineNumber,N.columnNumber,N[Mc])?P(nr[Km]("Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",ie,N[jm]||0,N[qm]||0,U,k,null,O),X):(N.errorSrc||(N.errorSrc=O),F.trackException({exception:N,severityLevel:3},X))}catch(fe){var J=U?U.name+", "+U.message:"null";re(1,11,"_onError threw exception while logging error, error will not be collected: "+ft(fe),{exception:Te(fe),errorString:J})}},F[Pd]=function(N){if(F[an])return F[an][Pd](N);d||(d=[]),d.push(N)},F.initialize=function(N,U,k,H){if(!F.isInitialized()){ce(U)&&Bn("Error initializing"),Q.initialize(N,U,k,H);try{oe=ho(Qn(F.identifier),U.evtNamespace&&U.evtNamespace()),d&&(Se(d,function(ie){U[Pd](ie)}),d=null),B(N),c=new QV(F[an]),s=new GV(F,b.overridePageViewDuration,F[an],c),f=new eF(F[Un](),function(ie,O,X){return ae(ie,O,X)}),i=new AE(F[Un](),"trackEvent"),i.action=function(ie,O,X,J,fe){J||(J={}),fe||(fe={}),J.duration=X[kd](),F.trackEvent({name:ie,properties:J,measurements:fe})},o=new AE(F[Un](),"trackPageView"),o.action=function(ie,O,X,J,fe){ce(J)&&(J={}),J.duration=X[kd]();var Oe={name:ie,uri:O,properties:J,measurements:fe};F[ga](Oe,J)},pf()&&(V(),K())}catch(ie){throw F.setInitialized(!1),ie}}},F._doTeardown=function(N,U){s&&s.teardown(N,U),Is(window,null,null,oe),_e()},F._getDbgPlgTargets=function(){return[R,E]};function B(N){var U=F.identifier,k=F[an];F[Us](At(N,function(){var H=yr(null,N,k);b=H.getExtCfg(U,iF),E=E||N[Xm]||b[Xm],M=b.expCfg,C=b[kE],N.storagePrefix&&Bm(N.storagePrefix),aF(b),p=b[CE],he()}))}function ae(N,U,k){var H={PageName:N,PageUrl:U};F.trackMetric({name:"PageVisitTime",average:k,max:k,min:k,sampleCount:1},H)}function he(){if(!_&&p){var N=["/browserLinkSignalR/","/__browserLink/"],U=function(k){if(p&&k.baseType===ha[Eo]){var H=k.baseData;if(H){for(var ie=0;ie<N[Ac];ie++)if(H.target&&wn(H.target,N[ie])>=0)return!1}}return!0};F[Us](F[Pd](U)),_=!0}}function P(N,U){var k=wo(N,nr[Eo],nr[ma],F[Un](),U);F[an][va](k)}function V(){var N=Vn(),U=$r(!0);F[Us](At(b,function(){g=b.disableExceptionTracking,!g&&!E&&!b[Xm]&&(A(fd(N,"onerror",{ns:oe,rsp:function(k,H,ie,O,X,J){!g&&k.rslt!==!0&&F._onerror(nr[Km](H,ie,O,X,J,k.evt))}},!1)),R++,E=!0)})),ve(N,U)}function K(){var N=Vn(),U=$r(!0);F[Us](At(b,function(){if(v=b[PE]===!0,N&&v&&!y&&tM()){var k=z0();Le(k.pushState)&&Le(k.replaceState)&&typeof Event!==f_&&x(N,k,U)}}))}function W(){var N=null;if(F[an]&&F[an].getTraceCtx&&(N=F[an].getTraceCtx(!1)),!N){var U=F[an].getPlugin(Nd);if(U){var k=U.plugin.context;k&&(N=Lm(k.telemetryTrace))}}return N}function x(N,U,k){if(y)return;var H=b.namePrefix||"";function ie(){v&&Vc(N,Rc(H+"locationchange"))}function O(){if(G&&(z=G),G=k&&k[Hs]||"",v){var X=W();if(X){X.setTraceId(co());var J="_unknown_";k&&k.pathname&&(J=k.pathname+(k.hash||"")),X.setName(Ht(F[Un](),J))}Jn((function(fe){F[Cd]({refUri:fe,properties:{duration:0}})}).bind(F,z),F.autoRoutePVDelay)}}A(fd(U,"pushState",{ns:oe,rsp:function(){v&&(Vc(N,Rc(H+"pushState")),Vc(N,Rc(H+"locationchange")))}},!0)),A(fd(U,"replaceState",{ns:oe,rsp:function(){v&&(Vc(N,Rc(H+"replaceState")),Vc(N,Rc(H+"locationchange")))}},!0)),ki(N,H+"popstate",ie,oe),ki(N,H+"locationchange",O,oe),y=!0}function ve(N,U){F[Us](At(b,function(){w=b[DE]===!0,E=E||b[Jm],w&&!T&&(A(fd(N,"onunhandledrejection",{ns:oe,rsp:function(k,H){w&&k.rslt!==!0&&F._onerror(nr[Km](rF(H),U?U[Hs]:"",0,0,H,k.evt))}},!1)),R++,b[Jm]=T=!0)}))}function re(N,U,k,H,ie){F[Un]().throwInternal(N,U,k,H,ie)}function _e(){i=null,o=null,s=null,c=null,f=null,d=null,p=!1,_=!1,v=!1,y=!1,g=!1,E=!1,w=!1,T=!1,C=!1;var N=$r(!0);z=N&&N[Hs]||"",G=null,oe=null,b=null,R=0,tt(F,"config",{g:function(){return b}})}tt(F,"_pageViewManager",{g:function(){return s}}),tt(F,"_pageViewPerformanceManager",{g:function(){return c}}),tt(F,"_pageVisitTimeManager",{g:function(){return f}}),tt(F,"_evtNamespace",{g:function(){return"."+oe}})}),n}return t.Version="3.3.7",t}(Os),Id="featureOptIn",FE="scheduleFetchTimeout";function YE(e,t,n,i){try{var o=n>i;o&&(e=null);var s=n==0?yM({},e):e;return s&&t&&!o&&Xe(s,function(c){var f=t[c];f&&(On(s[c])&&On(f)?s[c]=YE(s[c],f,++n,i):delete s[c])}),s}catch{}return e}var Ws="featureOptIn.",$E=".mode",UE=".onCfg",zE=".offCfg";function lF(e,t,n){var i;if(!t||!t.enabled)return null;var o=(t[Id]||{})[e]||{mode:1},s=o.mode,c=o.onCfg,f=o.offCfg,d=(n||{})[e]||{mode:2},p=d.mode,_=d.onCfg,v=d.offCfg,y=!!d.blockCdnCfg,g=Ws+e+$E,E=Ws+e+UE,w=Ws+e+zE,T=p,b=_,C=v;return y||(s===4||s===5?(T=s==4?3:2,b=c||_,C=f||v):s===2||p===2?(T=2,b=_||c,C=v||f):s===3?(T=3,b=_||c,C=v||f):s===1&&p===1&&(T=1)),i={},i[g]=T,i[E]=b,i[w]=C,i}function cF(e,t){try{if(!e||!e.enabled)return null;if(!e[Id])return e.config;var n=e[Id],i=e.config||{};return Xe(n,function(o){var s=lF(o,e,t.config[Id]);ce(s)||(Xe(s,function(c,f){tS(i,c,f)}),uF(o,s,i))}),i}catch{}return null}function uF(e,t,n){var i=t[Ws+e+$E],o=t[Ws+e+UE],s=t[Ws+e+zE],c=null;i===3&&(c=o),i===2&&(c=s),c&&Xe(c,function(f,d){tS(n,f,d)})}var Fc,fF="ai_cfgsync",HE="GET",dF=18e5,Zs=void 0,hF={instrumentationKey:!0,connectionString:!0,endpointUrl:!0},pF=ql((Fc={syncMode:1,blkCdnCfg:Zs,customEvtName:Zs,cfgUrl:Zs,overrideSyncFn:Zs,overrideFetchFn:Zs,onCfgChangeReceive:Zs},Fc[FE]=dF,Fc.nonOverrideConfigs=hF,Fc.enableAjax=!1,Fc)),_F=function(e){Ei(t,e);function t(){var n=e.call(this)||this;n.priority=198,n.identifier="AppInsightsCfgSyncPlugin";var i,o,s,c,f,d,p,_,v,y,g,E,w,T,b,C,M=!1,z;return St(t,n,function(G,oe){R(),G.initialize=function(N,U,k,H){oe.initialize(N,U,k,H),c=ho(Qn(G.identifier),U.evtNamespace&&U.evtNamespace()),F(N)},G.getCfg=function(){return o},G.pause=function(){M=!0,_e()},G.resume=function(){M=!1,re()},G.setCfg=function(N){return Q(N)},G.sync=function(N){return B(N)},G.updateEventListenerName=function(N){return ae(N)},G._doTeardown=function(N,U){A(),_e(),R()},G._getDbgPlgTargets=function(){return[_,p,s,v,w]};function R(){o=null,s=null,c=null,f=null,p=null,_=null,w=null,d=null,y=null,g=null,v=null,z=!1,b=null,C=null,E=null}function F(N){var U=G.identifier,k=G.core;G._addHook(At(N,function(){var H=yr(null,N,k);i=H.getExtCfg(U,pF);var ie=v;v=!!i.blkCdnCfg,z=!!i.enableAjax,!ce(ie)&&ie!==v&&(!v&&f?T&&T(f,K,_):_e()),ce(p)&&(p=i.syncMode===2),ce(_)&&(_=i.syncMode===1);var O=i.customEvtName||fF;s!==O&&(p?ae(O):(A(),s=O)),ce(f)&&(f=i.cfgUrl),f||(o=N,_&&B())})),C=i.overrideSyncFn,b=i.overrideFetchFn,E=i.onCfgChangeReceive,w=i.nonOverrideConfigs,y=i[FE],T=he(),g=0,f&&!v&&T&&T(f,K,_)}function Q(N,U){if(N){if(o=N,U&&!M)return B();if(p&&!M)return G.core.updateCfg(N),!0}return!1}function A(){try{var N=Xn();N&&Is(N,null,null,c)}catch{}}function B(N){try{return C&&Le(C)?C(o,N):PA(s,o,N)}catch{}return!1}function ae(N){try{return A(),N&&(s=N,x()),!0}catch{}return!1}function he(){var N=b;return ce(N)&&(Y_()?N=P:Zf()&&(N=V)),N}function P(N,U,k){var H=Xn(),ie=H&&H.fetch||null;if(N&&ie&&Le(ie))try{var O={method:HE};z||(O[sa]=!0);var X=new Request(N,O);if(!z)try{X[sa]=!0}catch{}Yn(fetch(X),function(J){var fe=J.value;J.rejected?W(U,400):fe.ok?Yn(fe.text(),function(Oe){W(U,fe.status,Oe.value,k)}):W(U,fe.status,null,k)})}catch{}}function V(N,U,k){try{var H=new XMLHttpRequest;z||(H[sa]=!0),H.open(HE,N),H.onreadystatechange=function(){H.readyState===XMLHttpRequest.DONE&&W(U,H.status,H.responseText,k)},H.onerror=function(){W(U,400)},H.ontimeout=function(){W(U,400)},H.send()}catch{}}function K(N,U,k){try{if(N>=200&&N<400&&U){g=0;var H=vr();if(H){var ie=H.parse(U),O=cF(ie,G.core),X=O&&Sn(O)&&ve(O);X&&Q(X,k)}}else g++;g<3&&re()}catch{}}function W(N,U,k,H){try{N(U,k,H)}catch{}}function x(){if(p){var N=Xn();if(N)try{ki(N,s,function(U){var k=U&&U.detail;if(E&&k)E(k);else{var H=k&&k.cfg,ie=H&&Sn(H)&&ve(H);ie&&Q(ie)}},c,!0)}catch{}}}function ve(N,U){var k=null;try{N&&(k=YE(N,w,0,5))}catch{}return k}function re(){!d&&y&&(d=Jn(function(){d=null,T(f,K,_)},y),d.unref())}function _e(){d&&d.cancel(),d=null,g=0}G.processTelemetry=function(N,U){G.processNext(N,U)}}),n}return t.__ieDyn=1,t}(Os),ya="duration",sn="tags",nv="deviceType",zn="data",Di="name",Yc="traceID",Je="length",$c="stringify",Sa="measurements",Gr="dataType",wa="envelopeType",Ea="toString",Ta="enqueue",ba="count",xi="push",rv="emitLineDelimitedJson",Gs="clear",Rd="markAsSent",Uc="clearSent",iv="bufferOverride",zc="BUFFER_KEY",To="SENT_BUFFER_KEY",js="concat",Hc="MAX_BUFFER_SIZE",Wc="triggerSend",pn="diagLog",ov="initialize",Zc="_sender",Gc="endpointUrl",jc="instrumentationKey",av="customHeaders",WE="maxBatchSizeInBytes",sv="onunloadDisableBeacon",lv="isBeaconApiDisabled",ZE="alwaysUseXhrOverride",GE="enableSessionStorageBuffer",jr="_buffer",jE="onunloadDisableFetch",qE="disableSendBeaconSplit",Ld="getSenderInst",Na="_onError",cv="_onPartialSuccess",Md="_onSuccess",uv="itemsReceived",fv="itemsAccepted",dv="baseType",Ad="sampleRate",mF="getHashCodeScore",hv="baseType",Dt="baseData",en="properties",KE="true";function Bt(e,t,n){return gt(e,t,n,sf)}function vF(e,t,n){var i=n[sn]=n[sn]||{},o=t.ext=t.ext||{},s=t[sn]=t[sn]||[],c=o.user;c&&(Bt(i,wt.userAuthUserId,c.authId),Bt(i,wt.userId,c.id||c.localId));var f=o.app;f&&Bt(i,wt.sessionId,f.sesId);var d=o.device;d&&(Bt(i,wt.deviceId,d.id||d.localId),Bt(i,wt[nv],d.deviceClass),Bt(i,wt.deviceIp,d.ip),Bt(i,wt.deviceModel,d.model),Bt(i,wt[nv],d[nv]));var p=t.ext.web;if(p){Bt(i,wt.deviceLanguage,p.browserLang),Bt(i,wt.deviceBrowserVersion,p.browserVer),Bt(i,wt.deviceBrowser,p.browser);var _=n[zn]=n[zn]||{},v=_[Dt]=_[Dt]||{},y=v[en]=v[en]||{};Bt(y,"domain",p.domain),Bt(y,"isManual",p.isManual?KE:null),Bt(y,"screenRes",p.screenRes),Bt(y,"userConsent",p.userConsent?KE:null)}var g=o.os;g&&(Bt(i,wt.deviceOS,g[Di]),Bt(i,wt.deviceOSVersion,g.osVer));var E=o.trace;E&&(Bt(i,wt.operationParentId,E.parentID),Bt(i,wt.operationName,Ht(e,E[Di])),Bt(i,wt.operationId,E[Yc]));for(var w={},T=s[Je]-1;T>=0;T--){var b=s[T];Xe(b,function(M,z){w[M]=z}),s.splice(T,1)}Xe(s,function(M,z){w[M]=z});var C=En(En({},i),w);C[wt.internalSdkVersion]||(C[wt.internalSdkVersion]=Ht(e,"javascript:".concat(gF.Version),64)),n[sn]=OS(C)}function bo(e,t,n){ce(e)||Xe(e,function(i,o){jl(o)?n[i]=o:Re(o)?t[i]=o:fc()&&(t[i]=vr()[$c](o))})}function ka(e,t){ce(e)||Xe(e,function(n,i){e[n]=i||t})}function Ca(e,t,n,i){var o=new yV(e,i,t);Bt(o,"sampleRate",n[Zw]),(n[Dt]||{}).startTime&&(o.time=Ns(n[Dt].startTime)),o.iKey=n.iKey;var s=n.iKey.replace(/-/g,"");return o[Di]=o[Di].replace("{0}",s),vF(e,n,o),n[sn]=n[sn]||[],OS(o)}function Pa(e,t){ce(t[Dt])&&pe(e,1,46,"telemetryItem.baseData cannot be null.")}var gF={Version:"3.3.7"};function yF(e,t,n){Pa(e,t);var i=t[Dt][Sa]||{},o=t[Dt][en]||{};bo(t[zn],o,i),ce(n)||ka(o,n);var s=t[Dt];if(ce(s))return ra(e,"Invalid input for dependency data"),null;var c=s[en]&&s[en][Gw]?s[en][Gw]:"GET",f=new ha(e,s.id,s.target,s[Di],s[ya],s.success,s.responseCode,c,s.type,s.correlationContext,o,i),d=new pa(ha[Gr],f);return Ca(e,ha[wa],t,d)}function XE(e,t,n){Pa(e,t);var i={},o={};t[hv]!==mo[Gr]&&(i.baseTypeSource=t[hv]),t[hv]===mo[Gr]?(i=t[Dt][en]||{},o=t[Dt][Sa]||{}):t[Dt]&&bo(t[Dt],i,o),bo(t[zn],i,o),ce(n)||ka(i,n);var s=t[Dt][Di],c=new mo(e,s,i,o),f=new pa(mo[Gr],c);return Ca(e,mo[wa],t,f)}function SF(e,t,n){Pa(e,t);var i=t[Dt][Sa]||{},o=t[Dt][en]||{};bo(t[zn],o,i),ce(n)||ka(o,n);var s=t[Dt],c=nr.CreateFromInterface(e,s,o,i),f=new pa(nr[Gr],c);return Ca(e,nr[wa],t,f)}function wF(e,t,n){Pa(e,t);var i=t[Dt],o=i[en]||{},s=i[Sa]||{};bo(t[zn],o,s),ce(n)||ka(o,n);var c=new da(e,i[Di],i.average,i.sampleCount,i.min,i.max,i.stdDev,o,s),f=new pa(da[Gr],c);return Ca(e,da[wa],t,f)}function EF(e,t,n){Pa(e,t);var i,o=t[Dt];!ce(o)&&!ce(o[en])&&!ce(o[en][ya])?(i=o[en][ya],delete o[en][ya]):!ce(t[zn])&&!ce(t[zn][ya])&&(i=t[zn][ya],delete t[zn][ya]);var s=t[Dt],c;((t.ext||{}).trace||{})[Yc]&&(c=t.ext.trace[Yc]);var f=s.id||c,d=s[Di],p=s.uri,_=s[en]||{},v=s[Sa]||{};if(ce(s.refUri)||(_.refUri=s.refUri),ce(s.pageType)||(_.pageType=s.pageType),ce(s.isLoggedIn)||(_.isLoggedIn=s.isLoggedIn[Ea]()),!ce(s[en])){var y=s[en];Xe(y,function(w,T){_[w]=T})}bo(t[zn],_,v),ce(n)||ka(_,n);var g=new go(e,d,p,i,_,v,f),E=new pa(go[Gr],g);return Ca(e,go[wa],t,E)}function TF(e,t,n){Pa(e,t);var i=t[Dt],o=i[Di],s=i.uri||i.url,c=i[en]||{},f=i[Sa]||{};bo(t[zn],c,f),ce(n)||ka(c,n);var d=new Ys(e,o,s,void 0,c,f,i),p=new pa(Ys[Gr],d);return Ca(e,Ys[wa],t,p)}function bF(e,t,n){Pa(e,t);var i=t[Dt].message,o=t[Dt].severityLevel,s=t[Dt][en]||{},c=t[Dt][Sa]||{};bo(t[zn],s,c),ce(n)||ka(s,n);var f=new Fs(e,i,o,s,c),d=new pa(Fs[Gr],f);return Ca(e,Fs[wa],t,d)}var JE=function(){function e(t,n){var i=[],o=!1,s=n.maxRetryCnt;this._get=function(){return i},this._set=function(c){return i=c,i},St(e,this,function(c){c[Ta]=function(f){if(c[ba]()>=n.eventsLimitInMem){o||(pe(t,2,105,"Maximum in-memory buffer size reached: "+c[ba](),!0),o=!0);return}f.cnt=f.cnt||0,!(!ce(s)&&f.cnt>s)&&i[xi](f)},c[ba]=function(){return i[Je]},c.size=function(){for(var f=i[Je],d=0;d<i[Je];d++)f+=i[d].item[Je];return n[rv]||(f+=2),f},c[Gs]=function(){i=[],o=!1},c.getItems=function(){return i.slice(0)},c.batchPayloads=function(f){if(f&&f[Je]>0){var d=[];Se(f,function(_){d[xi](_.item)});var p=n[rv]?d.join(`
68
68
  `):"["+d.join(",")+"]";return p}return null},c.createNew=function(f,d,p){var _=i.slice(0);f=f||t,d=d||{};var v=p?new QE(f,d):new pv(f,d);return Se(_,function(y){v[Ta](y)}),v}})}return e.__ieDyn=1,e}(),pv=function(e){Ei(t,e);function t(n,i){var o=e.call(this,n,i)||this;return St(t,o,function(s,c){s[Rd]=function(f){c[Gs]()},s[Uc]=function(f){}}),o}return t.__ieDyn=1,t}(JE),NF=["AI_buffer","AI_sentBuffer"],QE=function(e){Ei(t,e);function t(i,o){var s=e.call(this,i,o)||this,c=!1,f=o==null?void 0:o.namePrefix,d=o[iv]||{getItem:Vm,setItem:aE},p=d.getItem,_=d.setItem,v=o.maxRetryCnt;return St(t,s,function(y,g){var E=z(t[zc]),w=z(t[To]),T=R(),b=w[js](T),C=y._set(E[js](b));C[Je]>t[Hc]&&(C[Je]=t[Hc]),oe(t[To],[]),oe(t[zc],C),y[Ta]=function(Q){if(y[ba]()>=t[Hc]){c||(pe(i,2,67,"Maximum buffer size reached: "+y[ba](),!0),c=!0);return}Q.cnt=Q.cnt||0,!(!ce(v)&&Q.cnt>v)&&(g[Ta](Q),oe(t[zc],y._get()))},y[Gs]=function(){g[Gs](),oe(t[zc],y._get()),oe(t[To],[]),c=!1},y[Rd]=function(Q){oe(t[zc],y._set(M(Q,y._get())));var A=z(t[To]);A instanceof Array&&Q instanceof Array&&(A=A[js](Q),A[Je]>t[Hc]&&(pe(i,1,67,"Sent buffer reached its maximum size: "+A[Je],!0),A[Je]=t[Hc]),oe(t[To],A))},y[Uc]=function(Q){var A=z(t[To]);A=M(Q,A),oe(t[To],A)},y.createNew=function(Q,A,B){B=!!B;var ae=y._get().slice(0),he=z(t[To]).slice(0);Q=Q||i,A=A||{},y[Gs]();var P=B?new t(Q,A):new pv(Q,A);return Se(ae,function(V){P[Ta](V)}),B&&P[Rd](he),P};function M(Q,A){var B=[],ae=[];return Se(Q,function(he){ae[xi](he.item)}),Se(A,function(he){!Le(he)&&dn(ae,he.item)===-1&&B[xi](he)}),B}function z(Q){var A=Q;return A=f?f+"_"+A:A,G(A)}function G(Q){try{var A=p(i,Q);if(A){var B=vr().parse(A);if(Re(B)&&(B=vr().parse(B)),B&&$e(B))return B}}catch(ae){pe(i,1,42," storage key: "+Q+", "+ft(ae),{exception:Te(ae)})}return[]}function oe(Q,A){var B=Q;try{B=f?f+"_"+B:B;var ae=JSON[$c](A);_(i,B,ae)}catch(he){_(i,B,JSON[$c]([])),pe(i,2,41," storage key: "+B+", "+ft(he)+". Buffer cleared",{exception:Te(he)})}}function R(){var Q=[];try{return Se(NF,function(A){var B=F(A);if(Q=Q[js](B),f){var ae=f+"_"+A,he=F(ae);Q=Q[js](he)}}),Q}catch(A){pe(i,2,41,"Transfer events from previous buffers: "+ft(A)+". previous Buffer items can not be removed",{exception:Te(A)})}return[]}function F(Q){try{var A=G(Q),B=[];return Se(A,function(ae){var he={item:ae,cnt:0};B[xi](he)}),sE(i,Q),B}catch{}return[]}}),s}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}(JE),kF=function(){function e(t){St(e,this,function(n){n.serialize=function(c){var f=i(c,"root");try{return vr()[$c](f)}catch(d){pe(t,1,48,d&&Le(d[Ea])?d[Ea]():"Error serializing object",null,!0)}};function i(c,f){var d="__aiCircularRefCheck",p={};if(!c)return pe(t,1,48,"cannot serialize object because it is null or undefined",{name:f},!0),p;if(c[d])return pe(t,2,50,"Circular reference detected while serializing object",{name:f},!0),p;if(!c.aiDataContract){if(f==="measurements")p=s(c,"number",f);else if(f==="properties")p=s(c,"string",f);else if(f==="tags")p=s(c,"string",f);else if($e(c))p=o(c,f);else{pe(t,2,49,"Attempting to serialize an object which does not implement ISerializable",{name:f},!0);try{vr()[$c](c),p=c}catch(_){pe(t,1,48,_&&Le(_[Ea])?_[Ea]():"Error serializing object",null,!0)}}return p}return c[d]=!0,Xe(c.aiDataContract,function(_,v){var y=Le(v)?v()&1:v&1,g=Le(v)?v()&4:v&4,E=v&2,w=c[_]!==void 0,T=On(c[_])&&c[_]!==null;if(y&&!w&&!E)pe(t,1,24,"Missing required field specification. The field is required but not present on source",{field:_,name:f});else if(!g){var b=void 0;T?E?b=o(c[_],_):b=i(c[_],_):b=c[_],b!==void 0&&(p[_]=b)}}),delete c[d],p}function o(c,f){var d;if(c)if(!$e(c))pe(t,1,54,`This field was specified as an array in the contract but the item is not an array.\r
69
- `,{name:f},!0);else{d=[];for(var p=0;p<c[Je];p++){var _=c[p],v=i(_,f+"["+p+"]");d[xi](v)}}return d}function s(c,f,d){var p;return c&&(p={},Xe(c,function(_,v){if(f==="string")v===void 0?p[_]="undefined":v===null?p[_]="null":v[Ea]?p[_]=v[Ea]():p[_]="invalid field: toString() is not defined.";else if(f==="number")if(v===void 0)p[_]="undefined";else if(v===null)p[_]="null";else{var y=parseFloat(v);p[_]=y}else p[_]="invalid field: "+d+" is of unknown type.",pe(t,1,p[_],null,!0)})),p}})}return e.__ieDyn=1,e}(),CF=8,PF=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[Je]<CF;)t=t[js](t);for(var n=5381,i=0;i<t[Je];++i)n=(n<<5)+n+t.charCodeAt(i),n=n&n;return Math.abs(n)},e.INT_MAX_VALUE=2147483647,e}(),DF=function(){function e(){var t=this,n=new PF,i=new wE;t.getSamplingScore=function(o){var s=0;return o[sn]&&o[sn][i.userId]?s=n.getHashCodeScore(o[sn][i.userId]):o.ext&&o.ext.user&&o.ext.user.id?s=n[mF](o.ext.user.id):o[sn]&&o[sn][i.operationId]?s=n.getHashCodeScore(o[sn][i.operationId]):o.ext&&o.ext.telemetryTrace&&o.ext.telemetryTrace[Yc]?s=n.getHashCodeScore(o.ext.telemetryTrace[Yc]):s=Math.random()*100,s}}return e}(),xF=function(){function e(t,n){this.INT_MAX_VALUE=2147483647;var i=n||na(null);(t>100||t<0)&&(i.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[Ad]=t,this.samplingScoreGenerator=new DF}return e.prototype.isSampledIn=function(t){var n=this[Ad],i=!1;return n==null||n>=100||t.baseType===da[Gr]?!0:(i=this.samplingScoreGenerator.getSamplingScore(t)<n,i)},e}(),Et,Oi,wr=void 0,eT="",OF=65e3;function tT(e){try{return e.responseText}catch{}return null}function IF(e){return e&&e.sendPOST}var nT=ql((Et={endpointUrl:Xf(sf,Nm+Rs)},Et[rv]=zt(),Et.maxBatchInterval=15e3,Et[WE]=102400,Et.disableTelemetry=zt(),Et[GE]=zt(!0),Et.isRetryDisabled=zt(),Et[lv]=zt(!0),Et[qE]=zt(!0),Et.disableXhr=zt(),Et[jE]=zt(),Et[sv]=zt(),Et[jc]=wr,Et.namePrefix=wr,Et.samplingPercentage=Xf(RF,100),Et[av]=wr,Et.convertUndefined=wr,Et.eventsLimitInMem=1e4,Et[iv]=!1,Et.httpXHROverride={isVal:IF,v:wr},Et[ZE]=zt(),Et.transports=wr,Et.retryCodes=wr,Et.corsPolicy=wr,Et.maxRetryCnt={isVal:jl,v:10},Et)),rT="X-Set-Cross-Origin-Resource-Policy";function RF(e){return!isNaN(e)&&e>0&&e<=100}var LF=(Oi={},Oi[mo.dataType]=XE,Oi[Fs.dataType]=bF,Oi[go.dataType]=EF,Oi[Ys.dataType]=TF,Oi[nr.dataType]=SF,Oi[da.dataType]=wF,Oi[ha.dataType]=yF,Oi),MF=function(e){Ei(t,e);function t(){var n=e.call(this)||this;n.priority=1001,n.identifier=TE;var i,o,s,c,f,d,p,_,v=0,y,g,E,w,T,b,C,M,z,G,oe,R,F,Q,A,B,ae,he,P,V,K,W,x,ve,re,_e,N,U;return St(t,n,function(k,H){fl(),k.pause=function(){Vt(),c=!0},k.resume=function(){c&&(c=!1,o=null,j(),vt())},k.flush=function(Y,ee,de){if(Y===void 0&&(Y=!0),!c){Vt();try{return k[Wc](Y,null,de||1)}catch(Ce){pe(k[pn](),1,22,"flush failed, telemetry will not be collected: "+ft(Ce),{exception:Te(Ce)})}}},k.onunloadFlush=function(){if(!c)if(C||V)try{return k[Wc](!0,le,2)}catch(Y){pe(k[pn](),1,20,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+ft(Y),{exception:Te(Y)})}else k.flush(!1)},k.addHeader=function(Y,ee){_[Y]=ee},k[ov]=function(Y,ee,de,Ce){k.isInitialized()&&pe(k[pn](),1,28,"Sender is already initialized"),H[ov](Y,ee,de,Ce);var Be=k.identifier;d=new kF(ee.logger),i=0,o=null,s=0,k[Zc]=null,p=0;var Ae=k[pn]();E=ho(Qn("Sender"),ee.evtNamespace&&ee.evtNamespace()),g=HV(E),k._addHook(At(Y,function(nt){var Tt=nt.cfg;Tt.storagePrefix&&Bm(Tt.storagePrefix);var kn=yr(null,Tt,ee),Ue=kn.getExtCfg(Be,nT),dl=Ue[Gc];if(w&&dl===w){var au=Tt[Gc];au&&au!==dl&&(Ue[Gc]=au)}var zv=Ct("CompressionStream");U=zf("zipPayload",Tt,!1),Le(zv)||(U=!1);var Va=Ue.corsPolicy;Va?(Va==="same-origin"||Va==="same-site"||Va==="cross-origin")&&n.addHeader(rT,Va):delete _[rT],Ji(Ue[jc])&&(Ue[jc]=Tt[jc]),tt(k,"_senderConfig",{g:function(){return Ue}}),T!==Ue[Gc]&&(w=T=Ue[Gc]),ee.activeStatus()===no.PENDING?k.pause():ee.activeStatus()===no.ACTIVE&&k.resume(),G&&G!==Ue[av]&&Se(G,function(Xt){delete _[Xt.header]}),b=Ue[WE],C=(Ue[sv]===!1||Ue[lv]===!1)&&dc(),M=Ue[sv]===!1&&dc(),z=Ue[lv]===!1&&dc(),V=Ue[ZE],K=!!Ue.disableXhr,N=Ue.retryCodes;var su=Ue[iv],ln=!!Ue[GE]&&(!!su||Dc()),xe=Ue.namePrefix,Qd=ln!==B||ln&&he!==xe||ln&&ae!==su;if(k[jr]){if(Qd)try{k[jr]=k[jr].createNew(Ae,Ue,ln)}catch(Xt){pe(k[pn](),1,12,"failed to transfer telemetry to different buffer storage, telemetry will be lost: "+ft(Xt),{exception:Te(Xt)})}j()}else k[jr]=ln?new QE(Ae,Ue):new pv(Ae,Ue);he=xe,B=ln,ae=su,W=!Ue[jE]&&Y_(!0),re=!!Ue[qE],k._sample=new xF(Ue.samplingPercentage,Ae),R=Ue[jc],!Ji(R)&&!or(R,Tt)&&pe(Ae,1,100,"Invalid Instrumentation key "+R),G=Ue[av],Re(w)&&!Rm(w)&&G&&G[Je]>0?Se(G,function(Xt){n.addHeader(Xt.header,Xt.value)}):G=null,P=Ue.enableSendPromise;var lu=O();_e?_e.SetConfig(lu):(_e=new FB,_e[ov](lu,Ae));var Fa=Ue.httpXHROverride,Ya=null,Mi=null,eh=LS([3,1,2],Ue.transports);Ya=_e&&_e[Ld](eh,!1);var Jr=_e&&_e.getFallbackInst();x=function(Xt,Ai){return Pe(Jr,Xt,Ai)},ve=function(Xt,Ai){return Pe(Jr,Xt,Ai,!1)},Ya=V?Fa:Ya||Fa||Jr,k[Zc]=function(Xt,Ai){return Pe(Ya,Xt,Ai)},W&&(y=He);var hl=LS([3,1],Ue.unloadTransports);W||(hl=hl.filter(function(Xt){return Xt!==2})),Mi=_e&&_e[Ld](hl,!0),Mi=V?Fa:Mi||Fa,(V||Ue.unloadTransports||!y)&&Mi&&(y=function(Xt,Ai){return Pe(Mi,Xt,Ai)}),y||(y=x),oe=Ue.disableTelemetry,F=Ue.convertUndefined||wr,Q=Ue.isRetryDisabled,A=Ue.maxBatchInterval}))},k.processTelemetry=function(Y,ee){ee=k._getTelCtx(ee);var de=ee[pn]();try{var Ce=we(Y,de);if(!Ce)return;var Be=be(Y,de);if(!Be)return;var Ae=d.serialize(Be),nt=k[jr];j(Ae);var Tt={item:Ae,cnt:0};nt[Ta](Tt),vt()}catch(kn){pe(de,2,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+ft(kn),{exception:Te(kn)})}k.processNext(Y,ee)},k.isCompletelyIdle=function(){return!c&&v===0&&k._buffer[ba]()===0},k.getOfflineListener=function(){return g},k._xhrReadyStateChange=function(Y,ee,de){if(!De(ee))return X(Y,ee,de)},k[Wc]=function(Y,ee,de){Y===void 0&&(Y=!0);var Ce;if(!c)try{var Be=k[jr];if(oe)Be[Gs]();else{if(Be[ba]()>0){var Ae=Be.getItems();_n(de||0,Y),ee?Ce=ee.call(k,Ae,Y):Ce=k[Zc](Ae,Y)}s=+new Date}Vt()}catch(Tt){var nt=FS();(!nt||nt>9)&&pe(k[pn](),1,40,"Telemetry transmission failed, some telemetry will be lost: "+ft(Tt),{exception:Te(Tt)})}return Ce},k.getOfflineSupport=function(){return{getUrl:function(){return w},createPayload:dt,serialize:ze,batch:Wt,shouldProcess:function(Y){return!!we(Y)}}},k._doTeardown=function(Y,ee){k.onunloadFlush(),Cs(g,!1),fl()},k[Na]=function(Y,ee,de){if(!De(Y))return J(Y,ee)},k[cv]=function(Y,ee){if(!De(Y))return fe(Y,ee)},k[Md]=function(Y,ee){if(!De(Y))return Oe(Y)},k._xdrOnLoad=function(Y,ee){if(!De(ee))return ie(Y,ee)};function ie(Y,ee){var de=tT(Y);if(Y&&(de+""=="200"||de===""))i=0,k[Md](ee,0);else{var Ce=hm(de);Ce&&Ce[uv]&&Ce[uv]>Ce[fv]&&!Q?k[cv](ee,Ce):k[Na](ee,RS(Y))}}function O(){try{var Y={xdrOnComplete:function(de,Ce,Be){var Ae=Ge(Be);if(Ae)return ie(de,Ae)},fetchOnComplete:function(de,Ce,Be,Ae){var nt=Ge(Ae);if(nt)return ne(de.status,nt,de.url,nt[Je],de.statusText,Be||"")},xhrOnComplete:function(de,Ce,Be){var Ae=Ge(Be);if(Ae)return X(de,Ae,Ae[Je])},beaconOnRetry:function(de,Ce,Be){return ke(de,Ce,Be)}},ee={enableSendPromise:P,isOneDs:!1,disableCredentials:!1,disableXhr:K,disableBeacon:!z,disableBeaconSync:!M,senderOnCompleteCallBack:Y};return ee}catch{}return null}function X(Y,ee,de){Y.readyState===4&&ne(Y.status,ee,Y.responseURL,de,Wf(Y),tT(Y)||Y.response)}function J(Y,ee,de){pe(k[pn](),2,26,"Failed to send telemetry.",{message:ee}),k._buffer&&k._buffer[Uc](Y)}function fe(Y,ee){for(var de=[],Ce=[],Be=ee.errors.reverse(),Ae=0,nt=Be;Ae<nt.length;Ae++){var Tt=nt[Ae],kn=Y.splice(Tt.index,1)[0];Rn(Tt.statusCode)?Ce[xi](kn):de[xi](kn)}Y[Je]>0&&k[Md](Y,ee[fv]),de[Je]>0&&k[Na](de,Wf(null,["partial success",ee[fv],"of",ee.itemsReceived].join(" "))),Ce[Je]>0&&(Me(Ce),pe(k[pn](),2,40,"Partial success. Delivered: "+Y[Je]+", Failed: "+de[Je]+". Will retry to send "+Ce[Je]+" our of "+ee[uv]+" items"))}function Oe(Y,ee){k._buffer&&k._buffer[Uc](Y)}function Ge(Y){try{if(Y){var ee=Y,de=ee.oriPayload;return de&&de[Je]?de:null}}catch{}return null}function we(Y,ee){if(oe)return!1;if(!Y)return ee&&pe(ee,1,7,"Cannot send empty telemetry"),!1;if(Y.baseData&&!Y[dv])return ee&&pe(ee,1,70,"Cannot send telemetry without baseData and baseType"),!1;if(Y[dv]||(Y[dv]="EventData"),!k[Zc])return ee&&pe(ee,1,28,"Sender was not initialized"),!1;if(q(Y))Y[Zw]=k._sample[Ad];else return ee&&pe(ee,2,33,"Telemetry item was sampled out and not sent",{SampleRate:k._sample[Ad]}),!1;return!0}function be(Y,ee){var de=Y.iKey||R,Ce=t.constructEnvelope(Y,de,ee,F);if(!Ce){pe(ee,1,47,"Unable to create an AppInsights envelope");return}var Be=!1;if(Y[sn]&&Y[sn][bm]&&(Se(Y[sn][bm],function(Ae){try{Ae&&Ae(Ce)===!1&&(Be=!0,ra(ee,"Telemetry processor check returns false"))}catch(nt){pe(ee,1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+ft(nt),{exception:Te(nt)},!0)}}),delete Y[sn][bm]),!Be)return Ce}function ze(Y){var ee=eT,de=k[pn]();try{var Ce=we(Y,de),Be=null;Ce&&(Be=be(Y,de)),Be&&(ee=d.serialize(Be))}catch{}return ee}function Wt(Y){var ee=eT;return Y&&Y[Je]&&(ee="["+Y.join(",")+"]"),ee}function dt(Y){var ee=I();return{urlString:w,data:Y,headers:ee}}function q(Y){return k._sample.isSampledIn(Y)}function me(Y,ee,de,Ce){ee===200&&Y?k._onSuccess(Y,Y[Je]):Ce&&k[Na](Y,Ce)}function Pe(Y,ee,de,Ce){Ce===void 0&&(Ce=!0);var Be=function(Tt,kn,Ue){return me(ee,Tt,kn,Ue)},Ae=Ee(ee),nt=Y&&Y.sendPOST;return nt&&Ae&&(Ce&&k._buffer[Rd](ee),_e.preparePayload(function(Tt){return nt(Tt,Be,!de)},U,Ae,!de)),null}function Ee(Y){if($e(Y)&&Y[Je]>0){var ee=k[jr].batchPayloads(Y),de=I(),Ce={data:ee,urlString:w,headers:de,disableXhrSync:K,disableFetchKeepAlive:!W,oriPayload:Y};return Ce}return null}function I(){try{var Y=_||{};return Rm(w)&&(Y[mt[6]]=mt[7]),Y}catch{}return null}function j(Y){var ee=Y?Y[Je]:0;return k[jr].size()+ee>b?((!g||g.isOnline())&&k[Wc](!0,null,10),!0):!1}function ne(Y,ee,de,Ce,Be,Ae){var nt=null;if(k._appId||(nt=hm(Ae),nt&&nt.appId&&(k._appId=nt.appId)),(Y<200||Y>=300)&&Y!==0){if((Y===301||Y===307||Y===308)&&!te(de)){k[Na](ee,Be);return}if(g&&!g.isOnline()){if(!Q){var Tt=10;Me(ee,Tt),pe(k[pn](),2,40,". Offline - Response Code: ".concat(Y,". Offline status: ").concat(!g.isOnline(),". Will retry to send ").concat(ee.length," items."))}return}!Q&&Rn(Y)?(Me(ee),pe(k[pn](),2,40,". Response code "+Y+". Will retry to send "+ee[Je]+" items.")):k[Na](ee,Be)}else te(de),Y===206?(nt||(nt=hm(Ae)),nt&&!Q?k[cv](ee,nt):k[Na](ee,Be)):(i=0,k[Md](ee,Ce))}function te(Y){return p>=10?!1:!ce(Y)&&Y!==""&&Y!==w?(w=Y,++p,!0):!1}function le(Y,ee){if(y)y(Y,!1);else{var de=_e&&_e[Ld]([3],!0);return Pe(de,Y,ee)}}function ke(Y,ee,de){var Ce=Y,Be=Ce&&Ce.oriPayload;if(re)ve&&ve(Be,!0),pe(k[pn](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender.");else{for(var Ae=[],nt=0;nt<Be[Je];nt++){var Tt=Be[nt],kn=[Tt],Ue=Ee(kn);de(Ue,ee)?k._onSuccess(kn,kn[Je]):Ae[xi](Tt)}Ae[Je]>0&&(ve&&ve(Ae,!0),pe(k[pn](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}function De(Y){try{if(Y&&Y[Je])return Re(Y[0])}catch{}return null}function He(Y,ee){var de=null;if($e(Y)){for(var Ce=Y[Je],Be=0;Be<Y[Je];Be++)Ce+=Y[Be].item[Je];var Ae=_e.getSyncFetchPayload();Ae+Ce<=OF?de=2:dc()?de=3:(de=1,pe(k[pn](),2,40,". Failed to send telemetry with Beacon API, retried with xhrSender."));var nt=_e&&_e[Ld]([de],!0);return Pe(nt,Y,ee)}return null}function Me(Y,ee){if(ee===void 0&&(ee=1),!(!Y||Y[Je]===0)){var de=k[jr];de[Uc](Y),i++;for(var Ce=0,Be=Y;Ce<Be.length;Ce++){var Ae=Be[Ce];Ae.cnt=Ae.cnt||0,Ae.cnt++,de[Ta](Ae)}at(ee),vt()}}function at(Y){var ee=10,de;if(i<=1)de=ee;else{var Ce=(Math.pow(2,i)-1)/2,Be=Fn(Math.random()*Ce*ee)+1;Be=Y*Be,de=Kl(B0(Be,3600),ee)}var Ae=_r()+de*1e3;o=Ae}function vt(){if(!f&&!c){var Y=o?Kl(0,o-_r()):0,ee=Kl(A,Y);f=Jn(function(){f=null,k[Wc](!0,null,1)},ee)}}function Vt(){f&&f.cancel(),f=null,o=null}function Rn(Y){return ce(N)?Y===401||Y===408||Y===429||Y===500||Y===502||Y===503||Y===504:N[Je]&&N.indexOf(Y)>-1}function Hn(){var Y="getNotifyMgr",ee,de=k.core;return de&&(de[Y]?ee=de[Y]():ee=de._notificationManager),ee}function _n(Y,ee){var de=Hn();if(de&&de.eventsSendRequest)try{de.eventsSendRequest(Y,ee)}catch(Ce){pe(k[pn](),1,74,"send request notification failed: "+ft(Ce),{exception:Te(Ce)})}}function or(Y,ee){var de=ee.disableInstrumentationKeyValidation,Ce=ce(de)?!1:de;if(Ce)return!0;var Be="^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",Ae=new RegExp(Be);return Ae.test(Y)}function fl(){k[Zc]=null,k[jr]=null,k._appId=null,k._sample=null,_={},g=null,i=0,o=null,s=null,c=!1,f=null,d=null,p=0,v=0,y=null,E=null,w=null,T=null,b=0,C=!1,G=null,oe=!1,R=null,F=wr,Q=!1,B=null,he=wr,K=!1,W=!1,re=!1,x=null,ve=null,_e=null,tt(k,"_senderConfig",{g:function(){return IS({},nT)}})}}),n}return t.constructEnvelope=function(n,i,o,s){var c;i!==n.iKey&&!ce(i)?c=En(En({},n),{iKey:i}):c=n;var f=LF[c.baseType]||XE;return f(o,c,s)},t}(Os),iT="duration",qs="properties",Er="requestUrl",Da="length",No="traceID",ko="spanID",Tr="traceFlags",qc="context",Ks="aborted",Bd="_addHook",qr="core",_v="includeCorrelationHeaders",mv="getAbsoluteUrl",xa="headers",rr="requestHeaders",vv="setRequestHeader",oT="trackDependencyDataInternal",Xs="startTime",Js="toLowerCase",gv="enableRequestHeaderTracking",aT="enableAjaxErrorStatusText",sT="enableAjaxPerfTracking",lT="maxAjaxCallsPerView",cT="excludeRequestFromAutoTrackingPatterns",yv="disableAjaxTracking",uT="ajaxPerfLookupDelay",fT="disableFetchTracking",dT="enableResponseHeaderTracking",br="status",Oa="statusText",Vd="headerMap",Ia="requestSentTime",Sv="getTraceId",wv="getTraceFlags",Co="method",Ev="errorStatusText",hT="stateChangeAttached",pT="responseText",Kc="responseFinishedTime",Tv="CreateTrackItem",_T="getAllResponseHeaders",bv="getPartAProps",Fd="perfMark",Nv="perfTiming",kv="ajaxDiagnosticsMessage",Cv="correlationContext",Pv="ajaxTotalDuration",Dv="eventTraceCtx";function mT(e,t,n){var i=0,o=e[t],s=e[n];return o&&s&&(i=In(o,s)),i}function Ra(e,t,n,i,o){var s=0,c=mT(n,i,o);return c&&(s=Po(e,t,vo(c))),s}function Po(e,t,n){var i="ajaxPerf",o=0;if(e&&t&&n){var s=e[i]=e[i]||{};s[t]=n,o=1}return o}function AF(e,t){var n=e[Nv],i=t[qs]||{},o=0,s="name",c="Start",f="End",d="domainLookup",p="connect",_="redirect",v="request",y="response",g="startTime",E=d+c,w=d+f,T=p+c,b=p+f,C=v+c,M=v+f,z=y+c,G=y+f,oe=_+c,R=_=f,F="transferSize",Q="encodedBodySize",A="decodedBodySize",B="serverTiming";if(n){o|=Ra(i,_,n,oe,R),o|=Ra(i,d,n,E,w),o|=Ra(i,p,n,T,b),o|=Ra(i,v,n,C,M),o|=Ra(i,y,n,z,G),o|=Ra(i,"networkConnect",n,g,b),o|=Ra(i,"sentRequest",n,C,G);var ae=n[iT];ae||(ae=mT(n,g,G)||0),o|=Po(i,iT,ae),o|=Po(i,"perfTotal",ae);var he=n[B];if(he){var P={};Se(he,function(V,K){var W=$f(V[s]||""+K),x=P[W]||{};Xe(V,function(ve,re){(ve!==s&&Re(re)||jl(re))&&(x[ve]&&(re=x[ve]+";"+re),(re||!Re(re))&&(x[ve]=re))}),P[W]=x}),o|=Po(i,B,P)}o|=Po(i,F,n[F]),o|=Po(i,Q,n[Q]),o|=Po(i,A,n[A])}else e[Fd]&&(o|=Po(i,"missing",e.perfAttempts));o&&(t[qs]=i)}var BF=function(){function e(){var t=this;t.openDone=!1,t.setRequestHeaderDone=!1,t.sendDone=!1,t.abortDone=!1,t[hT]=!1}return e}(),vT=function(){function e(t,n,i,o){var s=this,c=i,f="responseText";s[Fd]=null,s.completed=!1,s.requestHeadersSize=null,s[rr]=null,s.responseReceivingDuration=null,s.callbackDuration=null,s[Pv]=null,s[Ks]=0,s.pageUrl=null,s[Er]=null,s.requestSize=0,s[Co]=null,s[br]=null,s[Ia]=null,s.responseStartedTime=null,s[Kc]=null,s.callbackFinishedTime=null,s.endTime=null,s.xhrMonitoringState=new BF,s.clientFailure=0,s[No]=t,s[ko]=n,s[Tr]=o==null?void 0:o.getTraceFlags(),o?s[Dv]={traceId:o[Sv](),spanId:o.getSpanId(),traceFlags:o[wv]()}:s[Dv]=null,St(e,s,function(d){d.getAbsoluteUrl=function(){return d[Er]?oV(d[Er]):null},d.getPathName=function(){return d[Er]?yd(c,aV(d[Co],d[Er])):null},d[Tv]=function(p,_,v){var y;if(d.ajaxTotalDuration=nS(In(d.requestSentTime,d.responseFinishedTime)*1e3)/1e3,d[Pv]<0)return null;var g=(y={id:"|"+d[No]+"."+d[ko],target:d[mv](),name:d.getPathName(),type:p,startTime:null,duration:d[Pv],success:+d[br]>=200&&+d[br]<400,responseCode:+d[br]},y[qs]={HttpMethod:d[Co]},y),E=g[qs];if(d[Ks]&&(E[Ks]=!0),d[Ia]&&(g[Xs]=new Date,g[Xs].setTime(d[Ia])),AF(d,g),_&&gi(d.requestHeaders)[Da]>0&&(E[rr]=d[rr]),v){var w=v();if(w){var T=w[Cv];if(T&&(g.correlationContext=T),w[Vd]&&gi(w.headerMap)[Da]>0&&(E.responseHeaders=w[Vd]),d[Ev])if(d[br]>=400){var b=w.type;(b===""||b==="text")&&(E.responseText=w.responseText?w[Oa]+" - "+w[f]:w[Oa]),b==="json"&&(E.responseText=w.response?w[Oa]+" - "+JSON.stringify(w.response):w[Oa])}else d[br]===0&&(E.responseText=w[Oa]||"")}}return g},d[bv]=function(){var p=null,_=d[Dv];if(_&&(_.traceId||_.spanId)){p={};var v=p[$n.TraceExt]={traceID:_.traceId,parentID:_.spanId};ce(_[Tr])||(v[Tr]=_[Tr])}return p}})}return e.__ieDyn=1,e}(),Lt,Xc="diagLog",Do="_ajaxData",La="fetch",Jc="Failed to monitor XMLHttpRequest",gT=", monitoring data for this ajax call ",Qs=gT+"may be incorrect.",yT=gT+"won't be sent.",ST="Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",wT="Failed to add custom defined request context as configured call back may missing a null check.",ET="Failed to calculate the duration of the ",TT=0;function VF(){var e=Xn();return!e||ce(e.Request)||ce(e.Request[Mr])||ce(e[La])?null:e[La]}function FF(e,t){var n,i=!1;if(Zf()){var o=XMLHttpRequest[Mr];i=!ce(o)&&!ce(o.open)&&!ce(o.send)&&!ce(o.abort)}var s=FS();if(s&&s<9&&(i=!1),i)try{var c=new XMLHttpRequest,f={xh:[],i:(n={},n[t]={},n)};c[Do]=f;var d=XMLHttpRequest[Mr].open;XMLHttpRequest[Mr].open=d}catch(p){i=!1,Qc(e,15,"Failed to enable XMLHttpRequest monitoring, extension is not supported",{exception:Te(p)})}return i}var el=function(e,t){return e&&t&&e[Do]?(e[Do].i||{})[t]:null},YF=function(e,t,n){if(e){var i=(e[Do]||{}).xh;i&&i.push({n:t,v:n})}},xv=function(e,t){var n=!1;if(e){var i=(e[Do]||{}).xh;i&&Se(i,function(o){if(o.n===t)return n=!0,-1})}return n};function Yd(e,t){var n="";try{var i=el(e,t);i&&i[Er]&&(n+="(url: '"+i[Er]+"')")}catch{}return n}function Qc(e,t,n,i,o){pe(e[Xc](),1,t,n,i,o)}function Ii(e,t,n,i,o){pe(e[Xc](),2,t,n,i,o)}function eu(e,t,n){return function(i){var o;Qc(e,t,n,(o={},o[kv]=Yd(i.inst,e._ajaxDataId),o.exception=Te(i.err),o))}}function tl(e,t){return e&&t?wn(e,t):-1}function bT(e,t,n){var i={id:t,fn:n};return e.push(i),{remove:function(){Se(e,function(o,s){if(o.id===i.id)return e.splice(s,1),-1})}}}function NT(e,t,n,i){var o=!0;return Se(t,function(s,c){try{s.fn.call(null,n)===!1&&(o=!1)}catch(f){pe(e&&e.logger,1,64,"Dependency "+i+" [#"+c+"] failed: "+ft(f),{exception:Te(f)},!0)}}),o}function $F(e,t,n,i,o,s){var c=e[Da],f=!0;if(c>0){var d={core:t,xhr:i,input:o,init:s,traceId:n[No],spanId:n[ko],traceFlags:n[Tr],context:n[qc]||{},aborted:!!n[Ks]};f=NT(t,e,d,"listener"),n[No]=d.traceId,n[ko]=d.spanId,n[Tr]=d[Tr],n[qc]=d[qc]}return f}var $d="*.blob.core.",UF=pr([$d+"windows.net",$d+"chinacloudapi.cn",$d+"cloudapi.de",$d+"usgovcloudapi.net"]),zF=[/https:\/\/[^\/]*(\.pipe\.aria|aria\.pipe|events\.data|collector\.azure)\.[^\/]+\/(OneCollector\/1|Collector\/3)\.0/i],HF=pr((Lt={},Lt[lT]=500,Lt[yv]=!1,Lt[fT]=!1,Lt[cT]=void 0,Lt.disableCorrelationHeaders=!1,Lt.distributedTracingMode=1,Lt.correlationHeaderExcludedDomains=UF,Lt.correlationHeaderDomains=void 0,Lt.correlationHeaderExcludePatterns=void 0,Lt.appId=void 0,Lt.enableCorsCorrelation=!1,Lt[gv]=!1,Lt[dT]=!1,Lt[aT]=!1,Lt[sT]=!1,Lt.maxAjaxPerfLookupAttempts=3,Lt[uT]=25,Lt.ignoreHeaders=["Authorization","X-API-Key","WWW-Authenticate"],Lt.addRequestContext=void 0,Lt.addIntEndpoints=!0,Lt)),WF=function(e){Ei(t,e);function t(){var n=e.call(this)||this;n.identifier=t.identifier,n.priority=120;var i,o,s,c,f,d,p,_,v,y,g,E,w,T,b,C,M,z,G,oe,R,F,Q,A,B,ae,he,P,V,K;return St(t,n,function(W,x){var ve=x[Bd];re(),W.initialize=function(I,j,ne,te){W.isInitialized()||(x.initialize(I,j,ne,te),oe=ho(Qn("ajax"),j&&j.evtNamespace&&j.evtNamespace()),_e(I),ie(),k(),N())},W._doTeardown=function(){re()},W.trackDependencyData=function(I,j){Ee(A,W[qr],null,I,j)},W[_v]=function(I,j,ne,te){var le=W._currentWindowHost||s;if($F(Q,W[qr],I,te,j,ne)){if(j||j===""){if(tE(c,I[mv](),le)){ne||(ne={});var ke=new Headers(ne[xa]||(j instanceof Request?j[xa]||{}:{}));if(y){var De="|"+I[No]+"."+I[ko];ke.set(mt[3],De),f&&(I[rr][mt[3]]=De)}var He=V||_&&_.appId();if(He&&(ke.set(mt[0],mt[2]+He),f&&(I[rr][mt[0]]=mt[2]+He)),v){var Me=I[Tr];ce(Me)&&(Me=1);var at=yw(gw(I[No],I[ko],Me));ke.set(mt[4],at),f&&(I[rr][mt[4]]=at)}ne[xa]=ke}return ne}else if(te){if(tE(c,I[mv](),le)){if(y)if(xv(te,mt[3]))Ii(W,71,"Unable to set ["+mt[3]+"] as it has already been set by another instance");else{var De="|"+I[No]+"."+I[ko];te[vv](mt[3],De),f&&(I[rr][mt[3]]=De)}var He=V||_&&_.appId();if(He&&(xv(te,mt[0])?Ii(W,71,"Unable to set ["+mt[0]+"] as it has already been set by another instance"):(te[vv](mt[0],mt[2]+He),f&&(I[rr][mt[0]]=mt[2]+He))),v){var Me=I[Tr];if(ce(Me)&&(Me=1),xv(te,mt[4]))Ii(W,71,"Unable to set ["+mt[4]+"] as it has already been set by another instance");else{var at=yw(gw(I[No],I[ko],Me));te[vv](mt[4],at),f&&(I[rr][mt[4]]=at)}}}return te}}},W[oT]=function(I,j,ne){if(w===-1||p<w){(P===2||P===1)&&typeof I.id=="string"&&I.id[I.id[Da]-1]!=="."&&(I.id+="."),ce(I[Xs])&&(I[Xs]=new Date);var te=wo(I,ha.dataType,ha.envelopeType,W[Xc](),j,ne);W[qr].track(te)}else p===w&&Qc(W,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);++p},W.addDependencyListener=function(I){return bT(Q,F++,I)},W.addDependencyInitializer=function(I){return bT(A,F++,I)};function re(){var I=$r();i=!1,o=!1,K=!1,s=I&&I.host&&I.host[Js](),c=null,f=!1,d=!1,p=0,_=null,v=!1,y=!1,g=null,E=!1,w=0,T=!1,b={},C=!1,M=!1,z=null,G=null,oe=null,F=0,Q=[],A=[],R=Qn("ajaxData"),W._ajaxDataId=R,B=null,ae=1,he=1,P=1,V=null}function _e(I){W[Bd](At(I,function(j){var ne=j.cfg,te=yr(null,ne,W[qr]);c=te.getExtCfg(t.identifier,HF),P=c.distributedTracingMode,f=c[gv],d=c[aT],E=c[sT],w=c[lT],z=[].concat(c[cT]||[],c.addIntEndpoints!==!1?zF:[]),G=c.addRequestContext,y=P===0||P===1,v=P===1||P===2,E&&(g=R),C=!!c[yv],ae=c.maxAjaxPerfLookupAttempts,he=c[uT],B=c.ignoreHeaders,V=c.appId}))}function N(){var I=W[qr].getPlugin(Nd);I&&(_=I.plugin[qc])}function U(I){var j=!0;return(I||B)&&Se(B,function(ne){if(ne[Js]()===I[Js]())return j=!1,-1}),j}function k(){var I=VF();if(I){var j=Xn(),ne=I.polyfill;W[Bd](At(c,function(){M=!!c[fT],T=c[dT],!M&&!i?(ve(Tm(j,La,{ns:oe,req:function(te,le,ke){var De;if(!M&&i&&!O(null,le,ke)&&!(ne&&o)){var He=te.ctx();De=dt(le,ke);var Me=W[_v](De,le,ke);Me!==ke&&te.set(1,Me),He.data=De}},rsp:function(te,le){if(!M){var ke=te.ctx().data;ke&&(te.rslt=te.rslt.then(function(De){return me(te,(De||{})[br],le,De,ke,function(){var He,Me=(He={statusText:(De||{})[Oa],headerMap:null},He[Cv]=Pe(De),He);if(T&&De){var at={};De.headers.forEach(function(vt,Vt){U(Vt)&&(at[Vt]=vt)}),Me[Vd]=at}return Me}),De}).catch(function(De){throw me(te,0,le,null,ke,null,{error:De.message||Te(De)}),De}))}},hkErr:eu(W,15,"Failed to monitor Window.fetch"+Qs)},!0,H0())),i=!0):ne&&!K&&(ve(Tm(j,La,{ns:oe,req:function(te,le,ke){O(null,le,ke)}})),K=!0)})),ne&&(j[La].polyfill=ne)}}function H(I,j,ne){ve(QB(I,j,ne))}function ie(){FF(W,R)&&W[Bd](At(c,function(){C=!!c[yv],f=c[gv],!C&&!o&&(H(XMLHttpRequest,"open",{ns:oe,req:function(I,j,ne,te){if(!C){var le=I.inst,ke=el(le,R);!O(le,ne)&&X(le,ke,!0)&&((!ke||!ke.xhrMonitoringState.openDone)&&(ke=fe(le,j,ne,te)),Oe(le,ke))}},hkErr:eu(W,15,Jc+".open"+Qs)}),H(XMLHttpRequest,"send",{ns:oe,req:function(I,j){if(!C){var ne=I.inst,te=el(ne,R);X(ne,te)&&!te.xhrMonitoringState.sendDone&&(ze("xhr",te),te[Ia]=Sd(),W[_v](te,void 0,void 0,ne),te.xhrMonitoringState.sendDone=!0)}},hkErr:eu(W,17,Jc+Qs)}),H(XMLHttpRequest,"abort",{ns:oe,req:function(I){if(!C){var j=I.inst,ne=el(j,R);X(j,ne)&&!ne.xhrMonitoringState.abortDone&&(ne[Ks]=1,ne.xhrMonitoringState.abortDone=!0)}},hkErr:eu(W,13,Jc+".abort"+Qs)}),H(XMLHttpRequest,"setRequestHeader",{ns:oe,req:function(I,j,ne){if(!C){var te=I.inst,le=el(te,R);le&&X(te,le)&&(YF(te,j,ne),f&&U(j)&&(le[rr][j]=ne))}},hkErr:eu(W,71,Jc+".setRequestHeader"+Qs)}),o=!0)}))}function O(I,j,ne){var te=!1,le=((Re(j)?j:(j||{}).url||"")||"")[Js]();if(Se(z,function(He){var Me=He;Re(He)&&(Me=new RegExp(He)),te||(te=Me.test(le))}),te)return te;var ke=tl(le,"?"),De=tl(le,"#");return(ke===-1||De!==-1&&De<ke)&&(ke=De),ke!==-1&&(le=le.substring(0,ke)),ce(I)?ce(j)||(te=(typeof j=="object"?j[sa]===!0:!1)||(ne?ne[sa]===!0:!1)):te=I[sa]===!0||le[sa]===!0,!te&&le&&Rm(le)&&(te=!0),te?b[le]||(b[le]=1):b[le]&&(te=!0),te}function X(I,j,ne){var te=!0,le=o;return ce(I)||(te=ne===!0||!ce(j)),le&&te}function J(){var I=null;return W[qr]&&W[qr].getTraceCtx&&(I=W[qr].getTraceCtx(!1)),!I&&_&&_.telemetryTrace&&(I=Lm(_.telemetryTrace)),I}function fe(I,j,ne,te){var le,ke=J(),De=ke&&ke[Sv]()||co(),He=eo(co(),0,16),Me=I[Do]=I[Do]||{xh:[],i:{}},at=Me.i=Me.i||{},vt=at[R]=at[R]||new vT(De,He,W[Xc](),(le=W.core)===null||le===void 0?void 0:le.getTraceCtx());return vt[Tr]=ke&&ke[wv](),vt[Co]=j,vt[Er]=ne,vt.xhrMonitoringState.openDone=!0,vt[rr]={},vt.async=te,vt[Ev]=d,vt}function Oe(I,j){j.xhrMonitoringState[hT]=ki(I,"readystatechange",function(){var ne;try{I&&I.readyState===4&&X(I,j)&&we(I)}catch(le){var te=Te(le);(!te||tl(te[Js](),"c00c023f")===-1)&&Qc(W,16,Jc+" 'readystatechange' event handler"+Qs,(ne={},ne[kv]=Yd(I,R),ne.exception=te,ne))}},oe)}function Ge(I){try{var j=I.responseType;if(j===""||j==="text")return I[pT]}catch{}return null}function we(I){var j=el(I,R);j[Kc]=Sd(),j[br]=I[br];function ne(te,le){var ke=le||{};ke.ajaxDiagnosticsMessage=Yd(I,R),te&&(ke.exception=Te(te)),Ii(W,14,ET+"ajax call"+yT,ke)}Wt("xmlhttprequest",j,function(){try{var te=j[Tv]("Ajax",f,function(){var Me,at=(Me={statusText:I[Oa],headerMap:null},Me[Cv]=be(I),Me.type=I.responseType,Me[pT]=Ge(I),Me.response=I.response,Me);if(T){var vt=I[_T]();if(vt){var Vt=yt(vt).split(/[\r\n]+/),Rn={};Se(Vt,function(Hn){var _n=Hn.split(": "),or=_n.shift(),fl=_n.join(": ");U(or)&&(Rn[or]=fl)}),at[Vd]=Rn}}return at}),le=void 0;try{G&&(le=G({status:I[br],xhr:I}))}catch{Ii(W,104,wT)}if(te){le!==void 0&&(te[qs]=En(En({},te.properties),le));var ke=j[bv]();Ee(A,W[qr],j,te,null,ke)}else ne(null,{requestSentTime:j[Ia],responseFinishedTime:j[Kc]})}finally{try{var De=I[Do]||{i:{}},He=De.i||{};He[R]&&(He[R]=null)}catch{}}},function(te){ne(te,null)})}function be(I){var j;try{var ne=I[_T]();if(ne!==null){var te=tl(ne[Js](),mt[8]);if(te!==-1){var le=I.getResponseHeader(mt[0]);return nE(le)}}}catch(ke){Ii(W,18,ST,(j={},j[kv]=Yd(I,R),j.exception=Te(ke),j))}}function ze(I,j){if(j[Er]&&g&&E){var ne=Si();if(ne&&Le(ne.mark)){TT++;var te=g+I+"#"+TT;ne.mark(te);var le=ne.getEntriesByName(te);le&&le[Da]===1&&(j[Fd]=le[0])}}}function Wt(I,j,ne,te){var le=j[Fd],ke=Si(),De=ae,He=he,Me=j[Er],at=0;(function vt(){try{if(ke&&le){at++;for(var Vt=null,Rn=ke.getEntries(),Hn=Rn[Da]-1;Hn>=0;Hn--){var _n=Rn[Hn];if(_n){if(_n.entryType==="resource")_n.initiatorType===I&&(tl(_n.name,Me)!==-1||tl(Me,_n.name)!==-1)&&(Vt=_n);else if(_n.entryType==="mark"&&_n.name===le.name){j[Nv]=Vt;break}if(_n[Xs]<le[Xs]-1e3)break}}}!le||j[Nv]||at>=De||j.async===!1?(le&&Le(ke.clearMarks)&&ke.clearMarks(le.name),j.perfAttempts=at,ne()):Jn(vt,He)}catch(or){te(or)}})()}function dt(I,j){var ne,te=J(),le=te&&te[Sv]()||co(),ke=eo(co(),0,16),De=new vT(le,ke,W[Xc](),(ne=W.core)===null||ne===void 0?void 0:ne.getTraceCtx());De[Tr]=te&&te[wv](),De[Ia]=Sd(),De[Ev]=d;var He;if(I instanceof Request?He=(I||{}).url||"":He=I,He===""){var Me=$r();Me&&Me.href&&(He=eS(Me.href,"#")[0])}De[Er]=He;var at="GET";j&&j[Co]?at=j[Co]:I&&I instanceof Request&&(at=I[Co]),De[Co]=at;var vt={};if(f){var Vt=new Headers((j?j[xa]:0)||(I instanceof Request?I[xa]||{}:{}));Vt.forEach(function(Rn,Hn){U(Hn)&&(vt[Hn]=Rn)})}return De[rr]=vt,ze(La,De),De}function q(I){var j="";try{ce(I)||(typeof I=="string"?j+="(url: '".concat(I,"')"):j+="(url: '".concat(I.url,"')"))}catch(ne){Qc(W,15,"Failed to grab failed fetch diagnostics message",{exception:Te(ne)})}return j}function me(I,j,ne,te,le,ke,De){if(!le)return;function He(Me,at,vt){var Vt=vt||{};Vt.fetchDiagnosticsMessage=q(ne),at&&(Vt.exception=Te(at)),Ii(W,Me,ET+"fetch call"+yT,Vt)}le[Kc]=Sd(),le[br]=j,Wt(La,le,function(){var Me=le[Tv]("Fetch",f,ke),at;try{G&&(at=G({status:j,request:ne,response:te}))}catch{Ii(W,104,wT)}if(Me){at!==void 0&&(Me[qs]=En(En({},Me.properties),at));var vt=le[bv]();Ee(A,W[qr],le,Me,null,vt)}else He(14,null,{requestSentTime:le[Ia],responseFinishedTime:le[Kc]})},function(Me){He(18,Me,null)})}function Pe(I){if(I&&I[xa])try{var j=I[xa].get(mt[0]);return nE(j)}catch(ne){Ii(W,18,ST,{fetchDiagnosticsMessage:q(I),exception:Te(ne)})}}function Ee(I,j,ne,te,le,ke){var De=!0,He=I[Da];if(He>0){var Me={item:te,properties:le,sysProperties:ke,context:ne?ne[qc]:null,aborted:ne?!!ne[Ks]:!1};De=NT(j,I,Me,"initializer")}De&&W[oT](te,le,ke)}}),n}return t.prototype.processTelemetry=function(n,i){this.processNext(n,i)},t.prototype.addDependencyInitializer=function(n){return null},t.identifier="AjaxDependencyPlugin",t}(Os),ZF=function(){function e(){}return e}(),GF=function(){function e(){this.id="browser",this.deviceClass="Browser"}return e}(),jF="3.3.7",qF=function(){function e(t,n){var i=this,o=At(t,function(){var s=t.sdkExtension;i.sdkVersion=(s?s+"_":"")+"javascript:"+jF});n&&n.add(o)}return e}(),KF=function(){function e(){}return e}(),Ud="session",zd="sessionManager",Hd="isUserCookieSet",Wd="isNewUser",Ov="getTraceCtx",Iv="telemetryTrace",kT="applySessionContext",CT="applyApplicationContext",PT="applyOperationContext",DT="applyOperatingSystemContxt",xT="applyLocationContext",OT="applyInternalContext",Zd="getSessionId",IT="sessionCookiePostfix",Ma="automaticSession",nl="accountId",rl="authenticatedId",tu="acquisitionDate",Gd="renewalDate",nu="cookieSeparator",Rv="authUserCookieName",XF="ai_session",JF=864e5,QF=18e5,e2=6e4,RT=function(){function e(){}return e}(),t2=function(){function e(t,n,i){var o=this,s,c,f=na(n),d=tm(n),p,_;St(e,o,function(v){t||(t={});var y=At(t,function(C){p=t.sessionExpirationMs||JF,_=t.sessionRenewalMs||QF;var M=t[IT]||t.namePrefix||"";s=XF+M});i&&i.add(y),v[Ma]=new RT,v.update=function(){var C=_r(),M=!1,z=v[Ma];if(z.id||(M=!g(z)),!M&&p>0){var G=C-z[tu],oe=C-z[Gd];M=G<0||oe<0,M=M||G>p,M=M||oe>_}M?w(C):(!c||C-c>e2)&&T(z,C)},v.backup=function(){var C=v[Ma];b(C.id,C[tu],C[Gd])};function g(C,M){var z=!1,G=d.get(s);if(G&&Le(G.split))z=E(C,G);else{var oe=iE(f,s);oe&&(z=E(C,oe))}return z||!!C.id}function E(C,M){var z=!1,G=", session will be reset",oe=M.split("|");if(oe.length>=2)try{var R=+oe[1]||0,F=+oe[2]||0;isNaN(R)||R<=0?pe(f,2,27,"AI session acquisition date is 0"+G):isNaN(F)||F<=0?pe(f,2,27,"AI session renewal date is 0"+G):oe[0]&&(C.id=oe[0],C[tu]=R,C[Gd]=F,z=!0)}catch(Q){pe(f,1,9,"Error parsing ai_session value ["+(M||"")+"]"+G+" - "+ft(Q),{exception:Te(Q)})}return z}function w(C){var M=t.getNewId||$_;v[Ma].id=M(t.idLength||22),v[Ma][tu]=C,T(v[Ma],C),Ed()||pe(f,2,0,"Browser does not support local storage. Session durations will be inaccurate.")}function T(C,M){var z=C[tu];C[Gd]=M;var G=_,oe=z+p-M,R=[C.id,z,M],F=0;oe<G?F=oe/1e3:F=G/1e3;var Q=t.cookieDomain||null;d.set(s,R.join("|"),p>0?F:null,Q),c=M}function b(C,M,z){oE(f,s,[C,M,z].join("|"))}})}return e.__ieDyn=1,e}(),n2=function(){function e(t,n,i,o){var s=this;s.traceID=t||co(),s.parentID=n;var c=$r();!i&&c&&c.pathname&&(i=c.pathname),s.name=Ht(o,i)}return e}();function LT(e){return!(typeof e!="string"||!e||e.match(/,|;|=| |\|/))}var r2=function(){function e(t,n,i){this.isNewUser=!1,this.isUserCookieSet=!1;var o=na(n),s=tm(n),c;St(e,this,function(f){tt(f,"config",{g:function(){return t}});var d=At(t,function(){var y=t.userCookiePostfix||"";c=e.userCookieName+y;var g=s.get(c);if(g){f[Wd]=!1;var E=g.split(e[nu]);E.length>0&&(f.id=E[0],f[Hd]=!!f.id)}if(!f.id){f.id=p();var w=_(f.id);v(w.join(e[nu]));var T=(t.namePrefix||"")+"ai_session";pV(o,T)}f[nl]=t[nl]||void 0;var b=s.get(e[Rv]);if(b){b=decodeURI(b);var C=b.split(e[nu]);C[0]&&(f[rl]=C[0]),C.length>1&&C[1]&&(f[nl]=C[1])}});i&&i.add(d);function p(){var y=t||{},g=y.getNewId||$_,E=g(y.idLength?t.idLength:22);return E}function _(y){var g=Ns(new Date);f.accountAcquisitionDate=g,f[Wd]=!0;var E=[y,g];return E}function v(y){var g=31536e3;f[Hd]=s.set(c,y,g)}f.setAuthenticatedUserContext=function(y,g,E){E===void 0&&(E=!1);var w=!LT(y)||g&&!LT(g);if(w){pe(o,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}f[rl]=y;var T=f[rl];g&&(f[nl]=g,T=[f[rl],f.accountId].join(e[nu])),E&&s.set(e[Rv],encodeURI(T))},f.clearAuthenticatedUserContext=function(){f[rl]=null,f[nl]=null,s.del(e[Rv])},f.update=function(y){if(f.id!==y||!f[Hd]){var g=y||p(),E=_(g);v(E.join(e[nu]))}}})}return e.cookieSeparator="|",e.userCookieName="ai_user",e.authUserCookieName="ai_authUser",e}(),jd="ext",qd="tags";function il(e,t){e&&e[t]&&gi(e[t]).length===0&&delete e[t]}function MT(){return null}var i2=function(){function e(t,n,i,o){var s=this,c=t.logger;St(e,this,function(f){if(f.appId=MT,f[Zd]=MT,f.application=new ZF,f.internal=new qF(n,o),pf()){f[zd]=new t2(n,t,o),f.device=new GF,f.location=new KF,f.user=new r2(n,t,o);var d=void 0,p=void 0,_;i&&(d=i.getTraceId(),p=i.getSpanId(),_=i.getName()),f[Iv]=new n2(d,p,_,c),f[Ud]=new RT}f[Zd]=function(){var v=f[Ud],y=null;if(v&&Re(v.id))y=v.id;else{var g=(f[zd]||{})[Ma];y=g&&Re(g.id)?g.id:null}return y},f[kT]=function(v,y){gt(bn(v.ext,$n.AppExt),"sesId",f[Zd](),Re)},f[DT]=function(v,y){gt(v.ext,$n.OSExt,f.os)},f[CT]=function(v,y){var g=f.application;if(g){var E=bn(v,qd);gt(E,wt.applicationVersion,g.ver,Re),gt(E,wt.applicationBuild,g.build,Re)}},f.applyDeviceContext=function(v,y){var g=f.device;if(g){var E=bn(bn(v,jd),$n.DeviceExt);gt(E,"localId",g.id,Re),gt(E,"ip",g.ip,Re),gt(E,"model",g.model,Re),gt(E,"deviceClass",g.deviceClass,Re)}},f[OT]=function(v,y){var g=f.internal;if(g){var E=bn(v,qd);gt(E,wt.internalAgentVersion,g.agentVersion,Re),gt(E,wt.internalSdkVersion,Ht(c,g.sdkVersion,64),Re),(v.baseType===yc.dataType||v.baseType===go.dataType)&&(gt(E,wt.internalSnippet,g.snippetVer,Re),gt(E,wt.internalSdkSrc,g.sdkSrc,Re))}},f[xT]=function(v,y){var g=s.location;g&&gt(bn(v,qd,[]),wt.locationIp,g.ip,Re)},f[PT]=function(v,y){var g=f[Iv];if(g){var E=bn(bn(v,jd),$n.TraceExt,{traceID:void 0,parentID:void 0});gt(E,"traceID",g.traceID,Re,ce),gt(E,"name",g.name,Re,ce),gt(E,"parentID",g.parentID,Re,ce)}},f.applyWebContext=function(v,y){var g=s.web;g&&gt(bn(v,jd),$n.WebExt,g)},f.applyUserContext=function(v,y){var g=f.user;if(g){var E=bn(v,qd,[]);gt(E,wt.userAccountId,g[nl],Re);var w=bn(bn(v,jd),$n.UserExt);gt(w,"id",g.id,Re),gt(w,"authId",g[rl],Re)}},f.cleanUp=function(v,y){var g=v.ext;g&&(il(g,$n.DeviceExt),il(g,$n.UserExt),il(g,$n.WebExt),il(g,$n.OSExt),il(g,$n.AppExt),il(g,$n.TraceExt))}})}return e.__ieDyn=1,e}(),xo,Lv,ol=null,o2=ql((xo={accountId:ol,sessionRenewalMs:30*60*1e3,samplingPercentage:100,sessionExpirationMs:24*60*60*1e3,cookieDomain:ol,sdkExtension:ol,isBrowserLinkTrackingEnabled:!1,appId:ol},xo[Zd]=ol,xo.namePrefix=Lv,xo[IT]=Lv,xo.userCookiePostfix=Lv,xo.idLength=22,xo.getNewId=ol,xo)),a2=function(e){Ei(t,e);function t(){var n=e.call(this)||this;n.priority=110,n.identifier=Nd;var i,o,s,c,f;return St(t,n,function(d,p){_(),tt(d,"context",{g:function(){return c}}),d.initialize=function(g,E,w,T){p.initialize(g,E,w,T),v(g)},d.processTelemetry=function(g,E){if(!ce(g)){E=d._getTelCtx(E),g.name===go.envelopeType&&E.diagLog().resetInternalMessageCount();var w=c||{};w[Ud]&&typeof c[Ud].id!="string"&&w[zd]&&w[zd].update();var T=w.user;if(T&&!T[Hd]&&T.update(w.user.id),y(g,E),T&&T[Wd]&&(T[Wd]=!1,!f)){var b=new yc(72,(Lr()||{}).userAgent||"");rB(E.diagLog(),1,b)}d.processNext(g,E)}},d._doTeardown=function(g,E){var w=(g||{}).core();if(w&&w[Ov]){var T=w[Ov](!1);T===o&&w.setTraceCtx(s)}_()};function _(){i=null,o=null,s=null,c=null,f=!0}function v(g){var E=d.identifier,w=d.core;d._addHook(At(g,function(){var T=yr(null,g,w);g.storagePrefix&&Bm(g.storagePrefix),f=g.disableUserInitMessage!==!1,i=T.getExtCfg(E,o2),d._extConfig=i})),s=w[Ov](!1),c=new i2(w,i,s,d._unloadHooks),o=Lm(d.context[Iv],s),w.setTraceCtx(o),d.context.appId=function(){var T=w.getPlugin(TE);return T?T.plugin._appId:null}}function y(g,E){bn(g,"tags",[]),bn(g,"ext",{});var w=d.context;w[kT](g,E),w[CT](g,E),w.applyDeviceContext(g,E),w[PT](g,E),w.applyUserContext(g,E),w[DT](g,E),w.applyWebContext(g,E),w[xT](g,E),w[OT](g,E),w.cleanUp(g,E)}}),n}return t.__ieDyn=1,t}(Os),AT="AuthenticatedUserContext",al="track",Mv="snippet",s2="getCookieMgr",l2="startTrackPage",c2="stopTrackPage",Av="flush",u2="startTrackEvent",f2="stopTrackEvent",d2="addTelemetryInitializer",BT="pollInternalLogs",Bv="getPlugin",Vv="evtNamespace",h2=al+"Event",p2=al+"Trace",_2=al+"Metric",m2=al+"PageView",v2=al+"Exception",g2=al+"DependencyData",y2="set"+AT,S2="clear"+AT,w2="https://js.monitor.azure.com/scripts/b/ai.config.1.cfg.json",Kd="connectionString",Fv="version",Aa="queue",ru="instrumentationKey",sl="userOverrideEndpointUrl",Yv="endpointUrl",iu="onunloadFlush",ir="context",VT="addHousekeepingBeforeUnload",$v="sendMessage",E2="updateSnippetDefinitions",Kr,ll,cl,Uv,ou,FT=[Mv,"dependencies","properties","_snippetVersion","appInsightsNew","getSKUDefaults"],YT="iKeyUsage",$T="CdnUsage",UT="SdkLoaderVer",T2="zipPayload",Xd=void 0,b2={samplingRate:100,maxSendNumber:1},N2={monthInterval:3,daysOfMonth:[28]},Jd={disabled:!0,limit:gr(b2),interval:gr(N2)},k2=(Kr={},Kr[Kd]=Xd,Kr.endpointUrl=Xd,Kr[ru]=Xd,Kr[sl]=Xd,Kr.diagnosticLogInterval=Xf(C2,1e4),Kr.featureOptIn=(ll={},ll[YT]={mode:3},ll[$T]={mode:2},ll[UT]={mode:2},ll[T2]={mode:1},ll),Kr.throttleMgrCfg=gr((cl={},cl[109]=gr(Jd),cl[106]=gr(Jd),cl[111]=gr(Jd),cl[110]=gr(Jd),cl)),Kr.extensionConfig=gr((Uv={},Uv.AppInsightsCfgSyncPlugin=gr({cfgUrl:w2,syncMode:2}),Uv)),Kr);function C2(e){return e&&e>0}function zT(e,t){return lc(function(n,i){Yn(t,function(o){var s=o&&o.value,c=null;!o.rejected&&s&&(e[Kd]=s,c=lE(s)),n(c)})})}var P2=function(){function e(t){var n=this,i,o,s,c,f,d,p,_,v,y,g,E,w,T;St(e,this,function(b){z(),tt(b,"config",{g:function(){return _}}),Se(["pluginVersionStringArr","pluginVersionString"],function(R){tt(b,R,{g:function(){return p?p[R]:null}})}),c=""+(t.sv||t[Fv]||""),t[Aa]=t[Aa]||[],t[Fv]=t[Fv]||2;var C=er(t.config||{},k2);_=C.cfg,v=new sF,tt(b,"appInsights",{g:function(){return v}}),o=new a2,i=new WF,s=new MF,p=new BB,tt(b,"core",{g:function(){return p}}),oe(At(C,function(){var R=_[Kd];if(Ji(R)){var F=lc(function(ae,he){Yn(zT(_,R),function(P){if(P.rejected)ae(null);else{var V=_[ru],K=P.value;V=K&&K.instrumentationkey||V,ae(V)}})}),Q=_[sl];ce(Q)&&(Q=lc(function(ae,he){Yn(zT(_,R),function(P){if(P.rejected)ae(null);else{var V=_[Yv],K=P.value,W=K&&K.ingestionendpoint;V=W?W+Rs:V,ae(V)}})})),_[ru]=F,_[Yv]=Q}if(Re(R)&&R){var A=lE(R),B=A.ingestionendpoint;_.endpointUrl=_[sl]?_[sl]:B+Rs,_[ru]=A.instrumentationkey||_[ru]}_.endpointUrl=_[sl]?_[sl]:_[Yv]})),b[Mv]=t,b[Av]=function(R,F){R===void 0&&(R=!0);var Q;return ad(p,function(){return"AISKU.flush"},function(){R&&!F&&(Q=oo(function(ae){F=ae}));var A=1,B=function(){A--,A===0&&F()};Se(p.getChannels(),function(ae){ae&&(A++,ae[Av](R,B))}),B()},null,R),Q},b[iu]=function(R){R===void 0&&(R=!0),Se(p.getChannels(),function(F){F[iu]?F[iu]():F[Av](R)})},b.loadAppInsights=function(R,F,Q){R===void 0&&(R=!1),R&&cM("Legacy Mode is no longer supported");function A(B){if(B){var ae="";ce(c)||(ae+=c),b[ir]&&b[ir].internal&&(b[ir].internal.snippetVer=ae||"-"),Xe(b,function(he,P){Re(he)&&!Le(P)&&he&&he[0]!=="_"&&dn(FT,he)===-1&&B[he]!==P&&(B[he]=P)})}}return ad(b.core,function(){return"AISKU.loadAppInsights"},function(){p.initialize(_,[s,o,i,v,y],F,Q),tt(b,"context",{g:function(){return o[ir]}}),g||(g=new mV(p));var B=D2();B&&b[ir]&&(b[ir].internal.sdkSrc=B),A(b[Mv]),b.emptyQueue(),b[BT](),b[VT](b),oe(At(C,function(){var ae=!1;_.throttleMgrCfg[109]&&(ae=!_.throttleMgrCfg[109].disabled),!g.isReady()&&_.extensionConfig&&_.extensionConfig[y.identifier]&&ae&&g.onReadyState(!0),!E&&!_[Kd]&&zf(YT,_,!0)&&(g[$v](106,"See Instrumentation key support at aka.ms/IkeyMigrate"),E=!0),!w&&b[ir].internal.sdkSrc&&b[ir].internal.sdkSrc.indexOf("az416426")!=-1&&zf($T,_,!0)&&(g[$v](110,"See Cdn support notice at aka.ms/JsActiveCdn"),w=!0),!T&&parseInt(c)<6&&zf(UT,_,!0)&&(g[$v](111,"An updated Sdk Loader is available, see aka.ms/SnippetVer"),T=!0)}))}),b},b[E2]=function(R){oA(R,b,function(F){return F&&dn(FT,F)===-1})},b.emptyQueue=function(){try{if($e(b.snippet[Aa])){for(var R=b.snippet[Aa].length,F=0;F<R;F++){var Q=b.snippet[Aa][F];Q()}b.snippet[Aa]=void 0,delete b.snippet[Aa]}}catch(B){var A={};B&&Le(B.toString)&&(A.exception=B.toString())}},b[VT]=function(R){if(pf()||U0()){var F=function(){if(R[iu](!1),Le(b.core[Bv])){var A=n.core[Bv](Nd);if(A){var B=A.plugin;B&&B[ir]&&B[ir]._sessionManager&&B[ir]._sessionManager.backup()}}},Q=!1;d||(d=ho(f,p[Vv]&&p[Vv]())),oe(At(_,function(A){var B=A.cfg,ae=R.appInsights,he=yr(null,B,ae.core),P=he.getExtCfg(ae.identifier||bE);G();var V=B.disablePageUnloadEvents;P.disableFlushOnBeforeUnload||(qB(F,V,d)&&(Q=!0),ym(F,V,d)&&(Q=!0),!Q&&!bA()&&pe(p.logger,1,19,"Could not add handler for beforeunload and pagehide")),!Q&&!P.disableFlushOnUnload&&ym(F,V,d)}))}},b.getSender=function(){return s},b.unload=function(R,F,Q){var A=!1,B;R&&!F&&(B=oo(function(he){F=he}));function ae(he){A||(A=!0,z(),F&&F(he))}return b[iu](R),G(),p.unload&&p.unload(R,ae,Q),B},uc(b,v,[s2,h2,m2,"trackPageViewPerformance",v2,"_onerror",p2,_2,l2,c2,u2,f2]),uc(b,M,[g2,"addDependencyListener","addDependencyInitializer"]),uc(b,p,[d2,BT,"stopPollingInternalLogs",Bv,"addPlugin",Vv,"addUnloadCb","getTraceCtx","updateCfg","onCfgChange"]),uc(b,function(){var R=o[ir];return R?R.user:null},[y2,S2]);function M(){return i}function z(){f=Qn("AISKU"),d=null,i=null,o=null,s=null,c=null,g=null,E=!1,w=!1,T=!1,y=new _F}function G(){d&&(KB(null,d),XB(null,d))}function oe(R){p.addUnloadHook(R)}})}return e.prototype.addDependencyInitializer=function(t){return null},e}();function D2(){if(ou)return ou;var e=null,t=!1,n=["://js.monitor.azure.com/","://az416426.vo.msecnd.net/"];try{var i=(document||{}).currentScript;i&&(e=i.src)}catch{}if(e){try{var o=e.toLowerCase();if(o){var s="";Se(n,function(c,f){if(wn(o,c)!==-1)return s="cdn"+(f+1),wn(o,"/scripts/")===-1&&(wn(o,"/next/")!==-1?s+="-next":wn(o,"/beta/")!==-1&&(s+="-beta")),ou=s+(t?".mod":""),-1})}}catch{}ou=e}return ou}function HT(e){const t=new P2({config:{instrumentationKey:e,enableAutoRouteTracking:!1}});return t.loadAppInsights(),t}const x2={install:function(e,t){const n=HT(t.instrumentationKey),i=new SL(t.loggingLevel,n);Hl.register(i)}};var Xr=(e=>(e[e.ApplicationStart=0]="ApplicationStart",e[e.PageView=1]="PageView",e[e.Search=2]="Search",e[e.Sort=3]="Sort",e))(Xr||{});function O2(e){return e?`Field:'${e.SortField??"unspecified"}' Direction:'${e.SortDirection??"unspecified"}'`:"Sort: unspecified"}function I2(e){return!e||e.length===0?["No filters applied"]:e.sort(t=>t.displayPosition).map(t=>t.summariseStateAsText())}class R2{constructor(t){this.eventsToLog=t}trackPageView(t){this.eventShouldBeRecorded(Xr.PageView)&&this.recordEvent("Page view",t)}trackSearch(t){if(this.eventShouldBeRecorded(Xr.Search)){const n=I2(t);this.recordEvent("Search",n)}}trackSort(t){if(this.eventShouldBeRecorded(Xr.Sort)){const n=O2(t);this.recordEvent("Sort",n)}}trackApplicationStart(){this.eventShouldBeRecorded(Xr.ApplicationStart)&&this.recordEvent("Application start")}recordEvent(t,n){console.log(`${t}:`,n??"")}eventShouldBeRecorded(t){return this.eventsToLog.includes(t)}}const L2={install:function(e,t){const n=new R2(t.eventsToLog);e.config.globalProperties.$router.afterEach(o=>{var s;n.trackPageView({name:(s=o.name)==null?void 0:s.toString(),uri:o.fullPath})}),Qa.register(n)}};class M2{constructor(t,n){this.eventsToLog=t,this.appInsights=n}trackPageView(t){this.eventShouldBeRecorded(Xr.PageView)&&this.appInsights.trackPageView()}trackSearch(t){if(this.eventShouldBeRecorded(Xr.Search)){const n=t.map(o=>o.summariseStateAsObject()),i=t.map(o=>o.summariseStateAsText());this.appInsights.trackEvent({name:"Search",properties:{stateObject:n,stateText:i}})}}trackSort(t){this.eventShouldBeRecorded(Xr.Sort)&&this.appInsights.trackEvent({name:"Sort",properties:{sortState:t}})}trackApplicationStart(){this.eventShouldBeRecorded(Xr.ApplicationStart)&&this.appInsights.trackEvent({name:"Application start"})}eventShouldBeRecorded(t){return this.eventsToLog.includes(t)}}const A2={install:function(e,t){const n=HT(t.instrumentationKey),i=new M2(t.eventsToLog,n),o=s=>{var f;const c=(f=s.name)==null?void 0:f.valueOf();i.trackPageView({name:c,uri:s.path})};zl.add({priority:w0.Low,action:o}),Qa.register(i)}};pt.CapeApplicationInsightsAnalyticsPlugin=A2,pt.CapeApplicationInsightsLoggingPlugin=x2,pt.CapeConsoleAnalyticsPlugin=L2,pt.CapeConsoleLoggingPlugin=yL,pt.CapeEvent=Xr,pt.CapeLogger=Hl,pt.CapePlugin=b0,pt.Filter=Fh,pt.LoggingLevel=Dn,pt.createCapeApp=vL,pt.useDatasetStore=Zi,pt.useFieldStore=es,pt.useFilterStore=Yt,pt.usePropertyStore=nn,pt.useRecordStore=oi,pt.useSearchResultsStore=mn,Object.defineProperty(pt,Symbol.toStringTag,{value:"Module"})});
69
+ `,{name:f},!0);else{d=[];for(var p=0;p<c[Je];p++){var _=c[p],v=i(_,f+"["+p+"]");d[xi](v)}}return d}function s(c,f,d){var p;return c&&(p={},Xe(c,function(_,v){if(f==="string")v===void 0?p[_]="undefined":v===null?p[_]="null":v[Ea]?p[_]=v[Ea]():p[_]="invalid field: toString() is not defined.";else if(f==="number")if(v===void 0)p[_]="undefined";else if(v===null)p[_]="null";else{var y=parseFloat(v);p[_]=y}else p[_]="invalid field: "+d+" is of unknown type.",pe(t,1,p[_],null,!0)})),p}})}return e.__ieDyn=1,e}(),CF=8,PF=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[Je]<CF;)t=t[js](t);for(var n=5381,i=0;i<t[Je];++i)n=(n<<5)+n+t.charCodeAt(i),n=n&n;return Math.abs(n)},e.INT_MAX_VALUE=2147483647,e}(),DF=function(){function e(){var t=this,n=new PF,i=new wE;t.getSamplingScore=function(o){var s=0;return o[sn]&&o[sn][i.userId]?s=n.getHashCodeScore(o[sn][i.userId]):o.ext&&o.ext.user&&o.ext.user.id?s=n[mF](o.ext.user.id):o[sn]&&o[sn][i.operationId]?s=n.getHashCodeScore(o[sn][i.operationId]):o.ext&&o.ext.telemetryTrace&&o.ext.telemetryTrace[Yc]?s=n.getHashCodeScore(o.ext.telemetryTrace[Yc]):s=Math.random()*100,s}}return e}(),xF=function(){function e(t,n){this.INT_MAX_VALUE=2147483647;var i=n||na(null);(t>100||t<0)&&(i.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[Ad]=t,this.samplingScoreGenerator=new DF}return e.prototype.isSampledIn=function(t){var n=this[Ad],i=!1;return n==null||n>=100||t.baseType===da[Gr]?!0:(i=this.samplingScoreGenerator.getSamplingScore(t)<n,i)},e}(),Et,Oi,wr=void 0,eT="",OF=65e3;function tT(e){try{return e.responseText}catch{}return null}function IF(e){return e&&e.sendPOST}var nT=ql((Et={endpointUrl:Xf(sf,Nm+Rs)},Et[rv]=zt(),Et.maxBatchInterval=15e3,Et[WE]=102400,Et.disableTelemetry=zt(),Et[GE]=zt(!0),Et.isRetryDisabled=zt(),Et[lv]=zt(!0),Et[qE]=zt(!0),Et.disableXhr=zt(),Et[jE]=zt(),Et[sv]=zt(),Et[jc]=wr,Et.namePrefix=wr,Et.samplingPercentage=Xf(RF,100),Et[av]=wr,Et.convertUndefined=wr,Et.eventsLimitInMem=1e4,Et[iv]=!1,Et.httpXHROverride={isVal:IF,v:wr},Et[ZE]=zt(),Et.transports=wr,Et.retryCodes=wr,Et.corsPolicy=wr,Et.maxRetryCnt={isVal:jl,v:10},Et)),rT="X-Set-Cross-Origin-Resource-Policy";function RF(e){return!isNaN(e)&&e>0&&e<=100}var LF=(Oi={},Oi[mo.dataType]=XE,Oi[Fs.dataType]=bF,Oi[go.dataType]=EF,Oi[Ys.dataType]=TF,Oi[nr.dataType]=SF,Oi[da.dataType]=wF,Oi[ha.dataType]=yF,Oi),MF=function(e){Ei(t,e);function t(){var n=e.call(this)||this;n.priority=1001,n.identifier=TE;var i,o,s,c,f,d,p,_,v=0,y,g,E,w,T,b,C,M,z,G,oe,R,F,Q,A,B,ae,he,P,V,K,W,x,ve,re,_e,N,U;return St(t,n,function(k,H){fl(),k.pause=function(){Vt(),c=!0},k.resume=function(){c&&(c=!1,o=null,j(),vt())},k.flush=function(Y,ee,de){if(Y===void 0&&(Y=!0),!c){Vt();try{return k[Wc](Y,null,de||1)}catch(Ce){pe(k[pn](),1,22,"flush failed, telemetry will not be collected: "+ft(Ce),{exception:Te(Ce)})}}},k.onunloadFlush=function(){if(!c)if(C||V)try{return k[Wc](!0,le,2)}catch(Y){pe(k[pn](),1,20,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+ft(Y),{exception:Te(Y)})}else k.flush(!1)},k.addHeader=function(Y,ee){_[Y]=ee},k[ov]=function(Y,ee,de,Ce){k.isInitialized()&&pe(k[pn](),1,28,"Sender is already initialized"),H[ov](Y,ee,de,Ce);var Be=k.identifier;d=new kF(ee.logger),i=0,o=null,s=0,k[Zc]=null,p=0;var Ae=k[pn]();E=ho(Qn("Sender"),ee.evtNamespace&&ee.evtNamespace()),g=HV(E),k._addHook(At(Y,function(nt){var Tt=nt.cfg;Tt.storagePrefix&&Bm(Tt.storagePrefix);var kn=yr(null,Tt,ee),Ue=kn.getExtCfg(Be,nT),dl=Ue[Gc];if(w&&dl===w){var au=Tt[Gc];au&&au!==dl&&(Ue[Gc]=au)}var zv=Ct("CompressionStream");U=zf("zipPayload",Tt,!1),Le(zv)||(U=!1);var Va=Ue.corsPolicy;Va?(Va==="same-origin"||Va==="same-site"||Va==="cross-origin")&&n.addHeader(rT,Va):delete _[rT],Ji(Ue[jc])&&(Ue[jc]=Tt[jc]),tt(k,"_senderConfig",{g:function(){return Ue}}),T!==Ue[Gc]&&(w=T=Ue[Gc]),ee.activeStatus()===no.PENDING?k.pause():ee.activeStatus()===no.ACTIVE&&k.resume(),G&&G!==Ue[av]&&Se(G,function(Xt){delete _[Xt.header]}),b=Ue[WE],C=(Ue[sv]===!1||Ue[lv]===!1)&&dc(),M=Ue[sv]===!1&&dc(),z=Ue[lv]===!1&&dc(),V=Ue[ZE],K=!!Ue.disableXhr,N=Ue.retryCodes;var su=Ue[iv],ln=!!Ue[GE]&&(!!su||Dc()),xe=Ue.namePrefix,Qd=ln!==B||ln&&he!==xe||ln&&ae!==su;if(k[jr]){if(Qd)try{k[jr]=k[jr].createNew(Ae,Ue,ln)}catch(Xt){pe(k[pn](),1,12,"failed to transfer telemetry to different buffer storage, telemetry will be lost: "+ft(Xt),{exception:Te(Xt)})}j()}else k[jr]=ln?new QE(Ae,Ue):new pv(Ae,Ue);he=xe,B=ln,ae=su,W=!Ue[jE]&&Y_(!0),re=!!Ue[qE],k._sample=new xF(Ue.samplingPercentage,Ae),R=Ue[jc],!Ji(R)&&!or(R,Tt)&&pe(Ae,1,100,"Invalid Instrumentation key "+R),G=Ue[av],Re(w)&&!Rm(w)&&G&&G[Je]>0?Se(G,function(Xt){n.addHeader(Xt.header,Xt.value)}):G=null,P=Ue.enableSendPromise;var lu=O();_e?_e.SetConfig(lu):(_e=new FB,_e[ov](lu,Ae));var Fa=Ue.httpXHROverride,Ya=null,Mi=null,eh=LS([3,1,2],Ue.transports);Ya=_e&&_e[Ld](eh,!1);var Jr=_e&&_e.getFallbackInst();x=function(Xt,Ai){return Pe(Jr,Xt,Ai)},ve=function(Xt,Ai){return Pe(Jr,Xt,Ai,!1)},Ya=V?Fa:Ya||Fa||Jr,k[Zc]=function(Xt,Ai){return Pe(Ya,Xt,Ai)},W&&(y=He);var hl=LS([3,1],Ue.unloadTransports);W||(hl=hl.filter(function(Xt){return Xt!==2})),Mi=_e&&_e[Ld](hl,!0),Mi=V?Fa:Mi||Fa,(V||Ue.unloadTransports||!y)&&Mi&&(y=function(Xt,Ai){return Pe(Mi,Xt,Ai)}),y||(y=x),oe=Ue.disableTelemetry,F=Ue.convertUndefined||wr,Q=Ue.isRetryDisabled,A=Ue.maxBatchInterval}))},k.processTelemetry=function(Y,ee){ee=k._getTelCtx(ee);var de=ee[pn]();try{var Ce=we(Y,de);if(!Ce)return;var Be=be(Y,de);if(!Be)return;var Ae=d.serialize(Be),nt=k[jr];j(Ae);var Tt={item:Ae,cnt:0};nt[Ta](Tt),vt()}catch(kn){pe(de,2,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+ft(kn),{exception:Te(kn)})}k.processNext(Y,ee)},k.isCompletelyIdle=function(){return!c&&v===0&&k._buffer[ba]()===0},k.getOfflineListener=function(){return g},k._xhrReadyStateChange=function(Y,ee,de){if(!De(ee))return X(Y,ee,de)},k[Wc]=function(Y,ee,de){Y===void 0&&(Y=!0);var Ce;if(!c)try{var Be=k[jr];if(oe)Be[Gs]();else{if(Be[ba]()>0){var Ae=Be.getItems();_n(de||0,Y),ee?Ce=ee.call(k,Ae,Y):Ce=k[Zc](Ae,Y)}s=+new Date}Vt()}catch(Tt){var nt=FS();(!nt||nt>9)&&pe(k[pn](),1,40,"Telemetry transmission failed, some telemetry will be lost: "+ft(Tt),{exception:Te(Tt)})}return Ce},k.getOfflineSupport=function(){return{getUrl:function(){return w},createPayload:dt,serialize:ze,batch:Wt,shouldProcess:function(Y){return!!we(Y)}}},k._doTeardown=function(Y,ee){k.onunloadFlush(),Cs(g,!1),fl()},k[Na]=function(Y,ee,de){if(!De(Y))return J(Y,ee)},k[cv]=function(Y,ee){if(!De(Y))return fe(Y,ee)},k[Md]=function(Y,ee){if(!De(Y))return Oe(Y)},k._xdrOnLoad=function(Y,ee){if(!De(ee))return ie(Y,ee)};function ie(Y,ee){var de=tT(Y);if(Y&&(de+""=="200"||de===""))i=0,k[Md](ee,0);else{var Ce=hm(de);Ce&&Ce[uv]&&Ce[uv]>Ce[fv]&&!Q?k[cv](ee,Ce):k[Na](ee,RS(Y))}}function O(){try{var Y={xdrOnComplete:function(de,Ce,Be){var Ae=Ge(Be);if(Ae)return ie(de,Ae)},fetchOnComplete:function(de,Ce,Be,Ae){var nt=Ge(Ae);if(nt)return ne(de.status,nt,de.url,nt[Je],de.statusText,Be||"")},xhrOnComplete:function(de,Ce,Be){var Ae=Ge(Be);if(Ae)return X(de,Ae,Ae[Je])},beaconOnRetry:function(de,Ce,Be){return ke(de,Ce,Be)}},ee={enableSendPromise:P,isOneDs:!1,disableCredentials:!1,disableXhr:K,disableBeacon:!z,disableBeaconSync:!M,senderOnCompleteCallBack:Y};return ee}catch{}return null}function X(Y,ee,de){Y.readyState===4&&ne(Y.status,ee,Y.responseURL,de,Wf(Y),tT(Y)||Y.response)}function J(Y,ee,de){pe(k[pn](),2,26,"Failed to send telemetry.",{message:ee}),k._buffer&&k._buffer[Uc](Y)}function fe(Y,ee){for(var de=[],Ce=[],Be=ee.errors.reverse(),Ae=0,nt=Be;Ae<nt.length;Ae++){var Tt=nt[Ae],kn=Y.splice(Tt.index,1)[0];Rn(Tt.statusCode)?Ce[xi](kn):de[xi](kn)}Y[Je]>0&&k[Md](Y,ee[fv]),de[Je]>0&&k[Na](de,Wf(null,["partial success",ee[fv],"of",ee.itemsReceived].join(" "))),Ce[Je]>0&&(Me(Ce),pe(k[pn](),2,40,"Partial success. Delivered: "+Y[Je]+", Failed: "+de[Je]+". Will retry to send "+Ce[Je]+" our of "+ee[uv]+" items"))}function Oe(Y,ee){k._buffer&&k._buffer[Uc](Y)}function Ge(Y){try{if(Y){var ee=Y,de=ee.oriPayload;return de&&de[Je]?de:null}}catch{}return null}function we(Y,ee){if(oe)return!1;if(!Y)return ee&&pe(ee,1,7,"Cannot send empty telemetry"),!1;if(Y.baseData&&!Y[dv])return ee&&pe(ee,1,70,"Cannot send telemetry without baseData and baseType"),!1;if(Y[dv]||(Y[dv]="EventData"),!k[Zc])return ee&&pe(ee,1,28,"Sender was not initialized"),!1;if(q(Y))Y[Zw]=k._sample[Ad];else return ee&&pe(ee,2,33,"Telemetry item was sampled out and not sent",{SampleRate:k._sample[Ad]}),!1;return!0}function be(Y,ee){var de=Y.iKey||R,Ce=t.constructEnvelope(Y,de,ee,F);if(!Ce){pe(ee,1,47,"Unable to create an AppInsights envelope");return}var Be=!1;if(Y[sn]&&Y[sn][bm]&&(Se(Y[sn][bm],function(Ae){try{Ae&&Ae(Ce)===!1&&(Be=!0,ra(ee,"Telemetry processor check returns false"))}catch(nt){pe(ee,1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+ft(nt),{exception:Te(nt)},!0)}}),delete Y[sn][bm]),!Be)return Ce}function ze(Y){var ee=eT,de=k[pn]();try{var Ce=we(Y,de),Be=null;Ce&&(Be=be(Y,de)),Be&&(ee=d.serialize(Be))}catch{}return ee}function Wt(Y){var ee=eT;return Y&&Y[Je]&&(ee="["+Y.join(",")+"]"),ee}function dt(Y){var ee=I();return{urlString:w,data:Y,headers:ee}}function q(Y){return k._sample.isSampledIn(Y)}function me(Y,ee,de,Ce){ee===200&&Y?k._onSuccess(Y,Y[Je]):Ce&&k[Na](Y,Ce)}function Pe(Y,ee,de,Ce){Ce===void 0&&(Ce=!0);var Be=function(Tt,kn,Ue){return me(ee,Tt,kn,Ue)},Ae=Ee(ee),nt=Y&&Y.sendPOST;return nt&&Ae&&(Ce&&k._buffer[Rd](ee),_e.preparePayload(function(Tt){return nt(Tt,Be,!de)},U,Ae,!de)),null}function Ee(Y){if($e(Y)&&Y[Je]>0){var ee=k[jr].batchPayloads(Y),de=I(),Ce={data:ee,urlString:w,headers:de,disableXhrSync:K,disableFetchKeepAlive:!W,oriPayload:Y};return Ce}return null}function I(){try{var Y=_||{};return Rm(w)&&(Y[mt[6]]=mt[7]),Y}catch{}return null}function j(Y){var ee=Y?Y[Je]:0;return k[jr].size()+ee>b?((!g||g.isOnline())&&k[Wc](!0,null,10),!0):!1}function ne(Y,ee,de,Ce,Be,Ae){var nt=null;if(k._appId||(nt=hm(Ae),nt&&nt.appId&&(k._appId=nt.appId)),(Y<200||Y>=300)&&Y!==0){if((Y===301||Y===307||Y===308)&&!te(de)){k[Na](ee,Be);return}if(g&&!g.isOnline()){if(!Q){var Tt=10;Me(ee,Tt),pe(k[pn](),2,40,". Offline - Response Code: ".concat(Y,". Offline status: ").concat(!g.isOnline(),". Will retry to send ").concat(ee.length," items."))}return}!Q&&Rn(Y)?(Me(ee),pe(k[pn](),2,40,". Response code "+Y+". Will retry to send "+ee[Je]+" items.")):k[Na](ee,Be)}else te(de),Y===206?(nt||(nt=hm(Ae)),nt&&!Q?k[cv](ee,nt):k[Na](ee,Be)):(i=0,k[Md](ee,Ce))}function te(Y){return p>=10?!1:!ce(Y)&&Y!==""&&Y!==w?(w=Y,++p,!0):!1}function le(Y,ee){if(y)y(Y,!1);else{var de=_e&&_e[Ld]([3],!0);return Pe(de,Y,ee)}}function ke(Y,ee,de){var Ce=Y,Be=Ce&&Ce.oriPayload;if(re)ve&&ve(Be,!0),pe(k[pn](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender.");else{for(var Ae=[],nt=0;nt<Be[Je];nt++){var Tt=Be[nt],kn=[Tt],Ue=Ee(kn);de(Ue,ee)?k._onSuccess(kn,kn[Je]):Ae[xi](Tt)}Ae[Je]>0&&(ve&&ve(Ae,!0),pe(k[pn](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}function De(Y){try{if(Y&&Y[Je])return Re(Y[0])}catch{}return null}function He(Y,ee){var de=null;if($e(Y)){for(var Ce=Y[Je],Be=0;Be<Y[Je];Be++)Ce+=Y[Be].item[Je];var Ae=_e.getSyncFetchPayload();Ae+Ce<=OF?de=2:dc()?de=3:(de=1,pe(k[pn](),2,40,". Failed to send telemetry with Beacon API, retried with xhrSender."));var nt=_e&&_e[Ld]([de],!0);return Pe(nt,Y,ee)}return null}function Me(Y,ee){if(ee===void 0&&(ee=1),!(!Y||Y[Je]===0)){var de=k[jr];de[Uc](Y),i++;for(var Ce=0,Be=Y;Ce<Be.length;Ce++){var Ae=Be[Ce];Ae.cnt=Ae.cnt||0,Ae.cnt++,de[Ta](Ae)}at(ee),vt()}}function at(Y){var ee=10,de;if(i<=1)de=ee;else{var Ce=(Math.pow(2,i)-1)/2,Be=Fn(Math.random()*Ce*ee)+1;Be=Y*Be,de=Kl(B0(Be,3600),ee)}var Ae=_r()+de*1e3;o=Ae}function vt(){if(!f&&!c){var Y=o?Kl(0,o-_r()):0,ee=Kl(A,Y);f=Jn(function(){f=null,k[Wc](!0,null,1)},ee)}}function Vt(){f&&f.cancel(),f=null,o=null}function Rn(Y){return ce(N)?Y===401||Y===408||Y===429||Y===500||Y===502||Y===503||Y===504:N[Je]&&N.indexOf(Y)>-1}function Hn(){var Y="getNotifyMgr",ee,de=k.core;return de&&(de[Y]?ee=de[Y]():ee=de._notificationManager),ee}function _n(Y,ee){var de=Hn();if(de&&de.eventsSendRequest)try{de.eventsSendRequest(Y,ee)}catch(Ce){pe(k[pn](),1,74,"send request notification failed: "+ft(Ce),{exception:Te(Ce)})}}function or(Y,ee){var de=ee.disableInstrumentationKeyValidation,Ce=ce(de)?!1:de;if(Ce)return!0;var Be="^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",Ae=new RegExp(Be);return Ae.test(Y)}function fl(){k[Zc]=null,k[jr]=null,k._appId=null,k._sample=null,_={},g=null,i=0,o=null,s=null,c=!1,f=null,d=null,p=0,v=0,y=null,E=null,w=null,T=null,b=0,C=!1,G=null,oe=!1,R=null,F=wr,Q=!1,B=null,he=wr,K=!1,W=!1,re=!1,x=null,ve=null,_e=null,tt(k,"_senderConfig",{g:function(){return IS({},nT)}})}}),n}return t.constructEnvelope=function(n,i,o,s){var c;i!==n.iKey&&!ce(i)?c=En(En({},n),{iKey:i}):c=n;var f=LF[c.baseType]||XE;return f(o,c,s)},t}(Os),iT="duration",qs="properties",Er="requestUrl",Da="length",No="traceID",ko="spanID",Tr="traceFlags",qc="context",Ks="aborted",Bd="_addHook",qr="core",_v="includeCorrelationHeaders",mv="getAbsoluteUrl",xa="headers",rr="requestHeaders",vv="setRequestHeader",oT="trackDependencyDataInternal",Xs="startTime",Js="toLowerCase",gv="enableRequestHeaderTracking",aT="enableAjaxErrorStatusText",sT="enableAjaxPerfTracking",lT="maxAjaxCallsPerView",cT="excludeRequestFromAutoTrackingPatterns",yv="disableAjaxTracking",uT="ajaxPerfLookupDelay",fT="disableFetchTracking",dT="enableResponseHeaderTracking",br="status",Oa="statusText",Vd="headerMap",Ia="requestSentTime",Sv="getTraceId",wv="getTraceFlags",Co="method",Ev="errorStatusText",hT="stateChangeAttached",pT="responseText",Kc="responseFinishedTime",Tv="CreateTrackItem",_T="getAllResponseHeaders",bv="getPartAProps",Fd="perfMark",Nv="perfTiming",kv="ajaxDiagnosticsMessage",Cv="correlationContext",Pv="ajaxTotalDuration",Dv="eventTraceCtx";function mT(e,t,n){var i=0,o=e[t],s=e[n];return o&&s&&(i=In(o,s)),i}function Ra(e,t,n,i,o){var s=0,c=mT(n,i,o);return c&&(s=Po(e,t,vo(c))),s}function Po(e,t,n){var i="ajaxPerf",o=0;if(e&&t&&n){var s=e[i]=e[i]||{};s[t]=n,o=1}return o}function AF(e,t){var n=e[Nv],i=t[qs]||{},o=0,s="name",c="Start",f="End",d="domainLookup",p="connect",_="redirect",v="request",y="response",g="startTime",E=d+c,w=d+f,T=p+c,b=p+f,C=v+c,M=v+f,z=y+c,G=y+f,oe=_+c,R=_=f,F="transferSize",Q="encodedBodySize",A="decodedBodySize",B="serverTiming";if(n){o|=Ra(i,_,n,oe,R),o|=Ra(i,d,n,E,w),o|=Ra(i,p,n,T,b),o|=Ra(i,v,n,C,M),o|=Ra(i,y,n,z,G),o|=Ra(i,"networkConnect",n,g,b),o|=Ra(i,"sentRequest",n,C,G);var ae=n[iT];ae||(ae=mT(n,g,G)||0),o|=Po(i,iT,ae),o|=Po(i,"perfTotal",ae);var he=n[B];if(he){var P={};Se(he,function(V,K){var W=$f(V[s]||""+K),x=P[W]||{};Xe(V,function(ve,re){(ve!==s&&Re(re)||jl(re))&&(x[ve]&&(re=x[ve]+";"+re),(re||!Re(re))&&(x[ve]=re))}),P[W]=x}),o|=Po(i,B,P)}o|=Po(i,F,n[F]),o|=Po(i,Q,n[Q]),o|=Po(i,A,n[A])}else e[Fd]&&(o|=Po(i,"missing",e.perfAttempts));o&&(t[qs]=i)}var BF=function(){function e(){var t=this;t.openDone=!1,t.setRequestHeaderDone=!1,t.sendDone=!1,t.abortDone=!1,t[hT]=!1}return e}(),vT=function(){function e(t,n,i,o){var s=this,c=i,f="responseText";s[Fd]=null,s.completed=!1,s.requestHeadersSize=null,s[rr]=null,s.responseReceivingDuration=null,s.callbackDuration=null,s[Pv]=null,s[Ks]=0,s.pageUrl=null,s[Er]=null,s.requestSize=0,s[Co]=null,s[br]=null,s[Ia]=null,s.responseStartedTime=null,s[Kc]=null,s.callbackFinishedTime=null,s.endTime=null,s.xhrMonitoringState=new BF,s.clientFailure=0,s[No]=t,s[ko]=n,s[Tr]=o==null?void 0:o.getTraceFlags(),o?s[Dv]={traceId:o[Sv](),spanId:o.getSpanId(),traceFlags:o[wv]()}:s[Dv]=null,St(e,s,function(d){d.getAbsoluteUrl=function(){return d[Er]?oV(d[Er]):null},d.getPathName=function(){return d[Er]?yd(c,aV(d[Co],d[Er])):null},d[Tv]=function(p,_,v){var y;if(d.ajaxTotalDuration=nS(In(d.requestSentTime,d.responseFinishedTime)*1e3)/1e3,d[Pv]<0)return null;var g=(y={id:"|"+d[No]+"."+d[ko],target:d[mv](),name:d.getPathName(),type:p,startTime:null,duration:d[Pv],success:+d[br]>=200&&+d[br]<400,responseCode:+d[br]},y[qs]={HttpMethod:d[Co]},y),E=g[qs];if(d[Ks]&&(E[Ks]=!0),d[Ia]&&(g[Xs]=new Date,g[Xs].setTime(d[Ia])),AF(d,g),_&&gi(d.requestHeaders)[Da]>0&&(E[rr]=d[rr]),v){var w=v();if(w){var T=w[Cv];if(T&&(g.correlationContext=T),w[Vd]&&gi(w.headerMap)[Da]>0&&(E.responseHeaders=w[Vd]),d[Ev])if(d[br]>=400){var b=w.type;(b===""||b==="text")&&(E.responseText=w.responseText?w[Oa]+" - "+w[f]:w[Oa]),b==="json"&&(E.responseText=w.response?w[Oa]+" - "+JSON.stringify(w.response):w[Oa])}else d[br]===0&&(E.responseText=w[Oa]||"")}}return g},d[bv]=function(){var p=null,_=d[Dv];if(_&&(_.traceId||_.spanId)){p={};var v=p[$n.TraceExt]={traceID:_.traceId,parentID:_.spanId};ce(_[Tr])||(v[Tr]=_[Tr])}return p}})}return e.__ieDyn=1,e}(),Lt,Xc="diagLog",Do="_ajaxData",La="fetch",Jc="Failed to monitor XMLHttpRequest",gT=", monitoring data for this ajax call ",Qs=gT+"may be incorrect.",yT=gT+"won't be sent.",ST="Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",wT="Failed to add custom defined request context as configured call back may missing a null check.",ET="Failed to calculate the duration of the ",TT=0;function VF(){var e=Xn();return!e||ce(e.Request)||ce(e.Request[Mr])||ce(e[La])?null:e[La]}function FF(e,t){var n,i=!1;if(Zf()){var o=XMLHttpRequest[Mr];i=!ce(o)&&!ce(o.open)&&!ce(o.send)&&!ce(o.abort)}var s=FS();if(s&&s<9&&(i=!1),i)try{var c=new XMLHttpRequest,f={xh:[],i:(n={},n[t]={},n)};c[Do]=f;var d=XMLHttpRequest[Mr].open;XMLHttpRequest[Mr].open=d}catch(p){i=!1,Qc(e,15,"Failed to enable XMLHttpRequest monitoring, extension is not supported",{exception:Te(p)})}return i}var el=function(e,t){return e&&t&&e[Do]?(e[Do].i||{})[t]:null},YF=function(e,t,n){if(e){var i=(e[Do]||{}).xh;i&&i.push({n:t,v:n})}},xv=function(e,t){var n=!1;if(e){var i=(e[Do]||{}).xh;i&&Se(i,function(o){if(o.n===t)return n=!0,-1})}return n};function Yd(e,t){var n="";try{var i=el(e,t);i&&i[Er]&&(n+="(url: '"+i[Er]+"')")}catch{}return n}function Qc(e,t,n,i,o){pe(e[Xc](),1,t,n,i,o)}function Ii(e,t,n,i,o){pe(e[Xc](),2,t,n,i,o)}function eu(e,t,n){return function(i){var o;Qc(e,t,n,(o={},o[kv]=Yd(i.inst,e._ajaxDataId),o.exception=Te(i.err),o))}}function tl(e,t){return e&&t?wn(e,t):-1}function bT(e,t,n){var i={id:t,fn:n};return e.push(i),{remove:function(){Se(e,function(o,s){if(o.id===i.id)return e.splice(s,1),-1})}}}function NT(e,t,n,i){var o=!0;return Se(t,function(s,c){try{s.fn.call(null,n)===!1&&(o=!1)}catch(f){pe(e&&e.logger,1,64,"Dependency "+i+" [#"+c+"] failed: "+ft(f),{exception:Te(f)},!0)}}),o}function $F(e,t,n,i,o,s){var c=e[Da],f=!0;if(c>0){var d={core:t,xhr:i,input:o,init:s,traceId:n[No],spanId:n[ko],traceFlags:n[Tr],context:n[qc]||{},aborted:!!n[Ks]};f=NT(t,e,d,"listener"),n[No]=d.traceId,n[ko]=d.spanId,n[Tr]=d[Tr],n[qc]=d[qc]}return f}var $d="*.blob.core.",UF=pr([$d+"windows.net",$d+"chinacloudapi.cn",$d+"cloudapi.de",$d+"usgovcloudapi.net"]),zF=[/https:\/\/[^\/]*(\.pipe\.aria|aria\.pipe|events\.data|collector\.azure)\.[^\/]+\/(OneCollector\/1|Collector\/3)\.0/i],HF=pr((Lt={},Lt[lT]=500,Lt[yv]=!1,Lt[fT]=!1,Lt[cT]=void 0,Lt.disableCorrelationHeaders=!1,Lt.distributedTracingMode=1,Lt.correlationHeaderExcludedDomains=UF,Lt.correlationHeaderDomains=void 0,Lt.correlationHeaderExcludePatterns=void 0,Lt.appId=void 0,Lt.enableCorsCorrelation=!1,Lt[gv]=!1,Lt[dT]=!1,Lt[aT]=!1,Lt[sT]=!1,Lt.maxAjaxPerfLookupAttempts=3,Lt[uT]=25,Lt.ignoreHeaders=["Authorization","X-API-Key","WWW-Authenticate"],Lt.addRequestContext=void 0,Lt.addIntEndpoints=!0,Lt)),WF=function(e){Ei(t,e);function t(){var n=e.call(this)||this;n.identifier=t.identifier,n.priority=120;var i,o,s,c,f,d,p,_,v,y,g,E,w,T,b,C,M,z,G,oe,R,F,Q,A,B,ae,he,P,V,K;return St(t,n,function(W,x){var ve=x[Bd];re(),W.initialize=function(I,j,ne,te){W.isInitialized()||(x.initialize(I,j,ne,te),oe=ho(Qn("ajax"),j&&j.evtNamespace&&j.evtNamespace()),_e(I),ie(),k(),N())},W._doTeardown=function(){re()},W.trackDependencyData=function(I,j){Ee(A,W[qr],null,I,j)},W[_v]=function(I,j,ne,te){var le=W._currentWindowHost||s;if($F(Q,W[qr],I,te,j,ne)){if(j||j===""){if(tE(c,I[mv](),le)){ne||(ne={});var ke=new Headers(ne[xa]||(j instanceof Request?j[xa]||{}:{}));if(y){var De="|"+I[No]+"."+I[ko];ke.set(mt[3],De),f&&(I[rr][mt[3]]=De)}var He=V||_&&_.appId();if(He&&(ke.set(mt[0],mt[2]+He),f&&(I[rr][mt[0]]=mt[2]+He)),v){var Me=I[Tr];ce(Me)&&(Me=1);var at=yw(gw(I[No],I[ko],Me));ke.set(mt[4],at),f&&(I[rr][mt[4]]=at)}ne[xa]=ke}return ne}else if(te){if(tE(c,I[mv](),le)){if(y)if(xv(te,mt[3]))Ii(W,71,"Unable to set ["+mt[3]+"] as it has already been set by another instance");else{var De="|"+I[No]+"."+I[ko];te[vv](mt[3],De),f&&(I[rr][mt[3]]=De)}var He=V||_&&_.appId();if(He&&(xv(te,mt[0])?Ii(W,71,"Unable to set ["+mt[0]+"] as it has already been set by another instance"):(te[vv](mt[0],mt[2]+He),f&&(I[rr][mt[0]]=mt[2]+He))),v){var Me=I[Tr];if(ce(Me)&&(Me=1),xv(te,mt[4]))Ii(W,71,"Unable to set ["+mt[4]+"] as it has already been set by another instance");else{var at=yw(gw(I[No],I[ko],Me));te[vv](mt[4],at),f&&(I[rr][mt[4]]=at)}}}return te}}},W[oT]=function(I,j,ne){if(w===-1||p<w){(P===2||P===1)&&typeof I.id=="string"&&I.id[I.id[Da]-1]!=="."&&(I.id+="."),ce(I[Xs])&&(I[Xs]=new Date);var te=wo(I,ha.dataType,ha.envelopeType,W[Xc](),j,ne);W[qr].track(te)}else p===w&&Qc(W,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);++p},W.addDependencyListener=function(I){return bT(Q,F++,I)},W.addDependencyInitializer=function(I){return bT(A,F++,I)};function re(){var I=$r();i=!1,o=!1,K=!1,s=I&&I.host&&I.host[Js](),c=null,f=!1,d=!1,p=0,_=null,v=!1,y=!1,g=null,E=!1,w=0,T=!1,b={},C=!1,M=!1,z=null,G=null,oe=null,F=0,Q=[],A=[],R=Qn("ajaxData"),W._ajaxDataId=R,B=null,ae=1,he=1,P=1,V=null}function _e(I){W[Bd](At(I,function(j){var ne=j.cfg,te=yr(null,ne,W[qr]);c=te.getExtCfg(t.identifier,HF),P=c.distributedTracingMode,f=c[gv],d=c[aT],E=c[sT],w=c[lT],z=[].concat(c[cT]||[],c.addIntEndpoints!==!1?zF:[]),G=c.addRequestContext,y=P===0||P===1,v=P===1||P===2,E&&(g=R),C=!!c[yv],ae=c.maxAjaxPerfLookupAttempts,he=c[uT],B=c.ignoreHeaders,V=c.appId}))}function N(){var I=W[qr].getPlugin(Nd);I&&(_=I.plugin[qc])}function U(I){var j=!0;return(I||B)&&Se(B,function(ne){if(ne[Js]()===I[Js]())return j=!1,-1}),j}function k(){var I=VF();if(I){var j=Xn(),ne=I.polyfill;W[Bd](At(c,function(){M=!!c[fT],T=c[dT],!M&&!i?(ve(Tm(j,La,{ns:oe,req:function(te,le,ke){var De;if(!M&&i&&!O(null,le,ke)&&!(ne&&o)){var He=te.ctx();De=dt(le,ke);var Me=W[_v](De,le,ke);Me!==ke&&te.set(1,Me),He.data=De}},rsp:function(te,le){if(!M){var ke=te.ctx().data;ke&&(te.rslt=te.rslt.then(function(De){return me(te,(De||{})[br],le,De,ke,function(){var He,Me=(He={statusText:(De||{})[Oa],headerMap:null},He[Cv]=Pe(De),He);if(T&&De){var at={};De.headers.forEach(function(vt,Vt){U(Vt)&&(at[Vt]=vt)}),Me[Vd]=at}return Me}),De}).catch(function(De){throw me(te,0,le,null,ke,null,{error:De.message||Te(De)}),De}))}},hkErr:eu(W,15,"Failed to monitor Window.fetch"+Qs)},!0,H0())),i=!0):ne&&!K&&(ve(Tm(j,La,{ns:oe,req:function(te,le,ke){O(null,le,ke)}})),K=!0)})),ne&&(j[La].polyfill=ne)}}function H(I,j,ne){ve(QB(I,j,ne))}function ie(){FF(W,R)&&W[Bd](At(c,function(){C=!!c[yv],f=c[gv],!C&&!o&&(H(XMLHttpRequest,"open",{ns:oe,req:function(I,j,ne,te){if(!C){var le=I.inst,ke=el(le,R);!O(le,ne)&&X(le,ke,!0)&&((!ke||!ke.xhrMonitoringState.openDone)&&(ke=fe(le,j,ne,te)),Oe(le,ke))}},hkErr:eu(W,15,Jc+".open"+Qs)}),H(XMLHttpRequest,"send",{ns:oe,req:function(I,j){if(!C){var ne=I.inst,te=el(ne,R);X(ne,te)&&!te.xhrMonitoringState.sendDone&&(ze("xhr",te),te[Ia]=Sd(),W[_v](te,void 0,void 0,ne),te.xhrMonitoringState.sendDone=!0)}},hkErr:eu(W,17,Jc+Qs)}),H(XMLHttpRequest,"abort",{ns:oe,req:function(I){if(!C){var j=I.inst,ne=el(j,R);X(j,ne)&&!ne.xhrMonitoringState.abortDone&&(ne[Ks]=1,ne.xhrMonitoringState.abortDone=!0)}},hkErr:eu(W,13,Jc+".abort"+Qs)}),H(XMLHttpRequest,"setRequestHeader",{ns:oe,req:function(I,j,ne){if(!C){var te=I.inst,le=el(te,R);le&&X(te,le)&&(YF(te,j,ne),f&&U(j)&&(le[rr][j]=ne))}},hkErr:eu(W,71,Jc+".setRequestHeader"+Qs)}),o=!0)}))}function O(I,j,ne){var te=!1,le=((Re(j)?j:(j||{}).url||"")||"")[Js]();if(Se(z,function(He){var Me=He;Re(He)&&(Me=new RegExp(He)),te||(te=Me.test(le))}),te)return te;var ke=tl(le,"?"),De=tl(le,"#");return(ke===-1||De!==-1&&De<ke)&&(ke=De),ke!==-1&&(le=le.substring(0,ke)),ce(I)?ce(j)||(te=(typeof j=="object"?j[sa]===!0:!1)||(ne?ne[sa]===!0:!1)):te=I[sa]===!0||le[sa]===!0,!te&&le&&Rm(le)&&(te=!0),te?b[le]||(b[le]=1):b[le]&&(te=!0),te}function X(I,j,ne){var te=!0,le=o;return ce(I)||(te=ne===!0||!ce(j)),le&&te}function J(){var I=null;return W[qr]&&W[qr].getTraceCtx&&(I=W[qr].getTraceCtx(!1)),!I&&_&&_.telemetryTrace&&(I=Lm(_.telemetryTrace)),I}function fe(I,j,ne,te){var le,ke=J(),De=ke&&ke[Sv]()||co(),He=eo(co(),0,16),Me=I[Do]=I[Do]||{xh:[],i:{}},at=Me.i=Me.i||{},vt=at[R]=at[R]||new vT(De,He,W[Xc](),(le=W.core)===null||le===void 0?void 0:le.getTraceCtx());return vt[Tr]=ke&&ke[wv](),vt[Co]=j,vt[Er]=ne,vt.xhrMonitoringState.openDone=!0,vt[rr]={},vt.async=te,vt[Ev]=d,vt}function Oe(I,j){j.xhrMonitoringState[hT]=ki(I,"readystatechange",function(){var ne;try{I&&I.readyState===4&&X(I,j)&&we(I)}catch(le){var te=Te(le);(!te||tl(te[Js](),"c00c023f")===-1)&&Qc(W,16,Jc+" 'readystatechange' event handler"+Qs,(ne={},ne[kv]=Yd(I,R),ne.exception=te,ne))}},oe)}function Ge(I){try{var j=I.responseType;if(j===""||j==="text")return I[pT]}catch{}return null}function we(I){var j=el(I,R);j[Kc]=Sd(),j[br]=I[br];function ne(te,le){var ke=le||{};ke.ajaxDiagnosticsMessage=Yd(I,R),te&&(ke.exception=Te(te)),Ii(W,14,ET+"ajax call"+yT,ke)}Wt("xmlhttprequest",j,function(){try{var te=j[Tv]("Ajax",f,function(){var Me,at=(Me={statusText:I[Oa],headerMap:null},Me[Cv]=be(I),Me.type=I.responseType,Me[pT]=Ge(I),Me.response=I.response,Me);if(T){var vt=I[_T]();if(vt){var Vt=yt(vt).split(/[\r\n]+/),Rn={};Se(Vt,function(Hn){var _n=Hn.split(": "),or=_n.shift(),fl=_n.join(": ");U(or)&&(Rn[or]=fl)}),at[Vd]=Rn}}return at}),le=void 0;try{G&&(le=G({status:I[br],xhr:I}))}catch{Ii(W,104,wT)}if(te){le!==void 0&&(te[qs]=En(En({},te.properties),le));var ke=j[bv]();Ee(A,W[qr],j,te,null,ke)}else ne(null,{requestSentTime:j[Ia],responseFinishedTime:j[Kc]})}finally{try{var De=I[Do]||{i:{}},He=De.i||{};He[R]&&(He[R]=null)}catch{}}},function(te){ne(te,null)})}function be(I){var j;try{var ne=I[_T]();if(ne!==null){var te=tl(ne[Js](),mt[8]);if(te!==-1){var le=I.getResponseHeader(mt[0]);return nE(le)}}}catch(ke){Ii(W,18,ST,(j={},j[kv]=Yd(I,R),j.exception=Te(ke),j))}}function ze(I,j){if(j[Er]&&g&&E){var ne=Si();if(ne&&Le(ne.mark)){TT++;var te=g+I+"#"+TT;ne.mark(te);var le=ne.getEntriesByName(te);le&&le[Da]===1&&(j[Fd]=le[0])}}}function Wt(I,j,ne,te){var le=j[Fd],ke=Si(),De=ae,He=he,Me=j[Er],at=0;(function vt(){try{if(ke&&le){at++;for(var Vt=null,Rn=ke.getEntries(),Hn=Rn[Da]-1;Hn>=0;Hn--){var _n=Rn[Hn];if(_n){if(_n.entryType==="resource")_n.initiatorType===I&&(tl(_n.name,Me)!==-1||tl(Me,_n.name)!==-1)&&(Vt=_n);else if(_n.entryType==="mark"&&_n.name===le.name){j[Nv]=Vt;break}if(_n[Xs]<le[Xs]-1e3)break}}}!le||j[Nv]||at>=De||j.async===!1?(le&&Le(ke.clearMarks)&&ke.clearMarks(le.name),j.perfAttempts=at,ne()):Jn(vt,He)}catch(or){te(or)}})()}function dt(I,j){var ne,te=J(),le=te&&te[Sv]()||co(),ke=eo(co(),0,16),De=new vT(le,ke,W[Xc](),(ne=W.core)===null||ne===void 0?void 0:ne.getTraceCtx());De[Tr]=te&&te[wv](),De[Ia]=Sd(),De[Ev]=d;var He;if(I instanceof Request?He=(I||{}).url||"":He=I,He===""){var Me=$r();Me&&Me.href&&(He=eS(Me.href,"#")[0])}De[Er]=He;var at="GET";j&&j[Co]?at=j[Co]:I&&I instanceof Request&&(at=I[Co]),De[Co]=at;var vt={};if(f){var Vt=new Headers((j?j[xa]:0)||(I instanceof Request?I[xa]||{}:{}));Vt.forEach(function(Rn,Hn){U(Hn)&&(vt[Hn]=Rn)})}return De[rr]=vt,ze(La,De),De}function q(I){var j="";try{ce(I)||(typeof I=="string"?j+="(url: '".concat(I,"')"):j+="(url: '".concat(I.url,"')"))}catch(ne){Qc(W,15,"Failed to grab failed fetch diagnostics message",{exception:Te(ne)})}return j}function me(I,j,ne,te,le,ke,De){if(!le)return;function He(Me,at,vt){var Vt=vt||{};Vt.fetchDiagnosticsMessage=q(ne),at&&(Vt.exception=Te(at)),Ii(W,Me,ET+"fetch call"+yT,Vt)}le[Kc]=Sd(),le[br]=j,Wt(La,le,function(){var Me=le[Tv]("Fetch",f,ke),at;try{G&&(at=G({status:j,request:ne,response:te}))}catch{Ii(W,104,wT)}if(Me){at!==void 0&&(Me[qs]=En(En({},Me.properties),at));var vt=le[bv]();Ee(A,W[qr],le,Me,null,vt)}else He(14,null,{requestSentTime:le[Ia],responseFinishedTime:le[Kc]})},function(Me){He(18,Me,null)})}function Pe(I){if(I&&I[xa])try{var j=I[xa].get(mt[0]);return nE(j)}catch(ne){Ii(W,18,ST,{fetchDiagnosticsMessage:q(I),exception:Te(ne)})}}function Ee(I,j,ne,te,le,ke){var De=!0,He=I[Da];if(He>0){var Me={item:te,properties:le,sysProperties:ke,context:ne?ne[qc]:null,aborted:ne?!!ne[Ks]:!1};De=NT(j,I,Me,"initializer")}De&&W[oT](te,le,ke)}}),n}return t.prototype.processTelemetry=function(n,i){this.processNext(n,i)},t.prototype.addDependencyInitializer=function(n){return null},t.identifier="AjaxDependencyPlugin",t}(Os),ZF=function(){function e(){}return e}(),GF=function(){function e(){this.id="browser",this.deviceClass="Browser"}return e}(),jF="3.3.7",qF=function(){function e(t,n){var i=this,o=At(t,function(){var s=t.sdkExtension;i.sdkVersion=(s?s+"_":"")+"javascript:"+jF});n&&n.add(o)}return e}(),KF=function(){function e(){}return e}(),Ud="session",zd="sessionManager",Hd="isUserCookieSet",Wd="isNewUser",Ov="getTraceCtx",Iv="telemetryTrace",kT="applySessionContext",CT="applyApplicationContext",PT="applyOperationContext",DT="applyOperatingSystemContxt",xT="applyLocationContext",OT="applyInternalContext",Zd="getSessionId",IT="sessionCookiePostfix",Ma="automaticSession",nl="accountId",rl="authenticatedId",tu="acquisitionDate",Gd="renewalDate",nu="cookieSeparator",Rv="authUserCookieName",XF="ai_session",JF=864e5,QF=18e5,e2=6e4,RT=function(){function e(){}return e}(),t2=function(){function e(t,n,i){var o=this,s,c,f=na(n),d=tm(n),p,_;St(e,o,function(v){t||(t={});var y=At(t,function(C){p=t.sessionExpirationMs||JF,_=t.sessionRenewalMs||QF;var M=t[IT]||t.namePrefix||"";s=XF+M});i&&i.add(y),v[Ma]=new RT,v.update=function(){var C=_r(),M=!1,z=v[Ma];if(z.id||(M=!g(z)),!M&&p>0){var G=C-z[tu],oe=C-z[Gd];M=G<0||oe<0,M=M||G>p,M=M||oe>_}M?w(C):(!c||C-c>e2)&&T(z,C)},v.backup=function(){var C=v[Ma];b(C.id,C[tu],C[Gd])};function g(C,M){var z=!1,G=d.get(s);if(G&&Le(G.split))z=E(C,G);else{var oe=iE(f,s);oe&&(z=E(C,oe))}return z||!!C.id}function E(C,M){var z=!1,G=", session will be reset",oe=M.split("|");if(oe.length>=2)try{var R=+oe[1]||0,F=+oe[2]||0;isNaN(R)||R<=0?pe(f,2,27,"AI session acquisition date is 0"+G):isNaN(F)||F<=0?pe(f,2,27,"AI session renewal date is 0"+G):oe[0]&&(C.id=oe[0],C[tu]=R,C[Gd]=F,z=!0)}catch(Q){pe(f,1,9,"Error parsing ai_session value ["+(M||"")+"]"+G+" - "+ft(Q),{exception:Te(Q)})}return z}function w(C){var M=t.getNewId||$_;v[Ma].id=M(t.idLength||22),v[Ma][tu]=C,T(v[Ma],C),Ed()||pe(f,2,0,"Browser does not support local storage. Session durations will be inaccurate.")}function T(C,M){var z=C[tu];C[Gd]=M;var G=_,oe=z+p-M,R=[C.id,z,M],F=0;oe<G?F=oe/1e3:F=G/1e3;var Q=t.cookieDomain||null;d.set(s,R.join("|"),p>0?F:null,Q),c=M}function b(C,M,z){oE(f,s,[C,M,z].join("|"))}})}return e.__ieDyn=1,e}(),n2=function(){function e(t,n,i,o){var s=this;s.traceID=t||co(),s.parentID=n;var c=$r();!i&&c&&c.pathname&&(i=c.pathname),s.name=Ht(o,i)}return e}();function LT(e){return!(typeof e!="string"||!e||e.match(/,|;|=| |\|/))}var r2=function(){function e(t,n,i){this.isNewUser=!1,this.isUserCookieSet=!1;var o=na(n),s=tm(n),c;St(e,this,function(f){tt(f,"config",{g:function(){return t}});var d=At(t,function(){var y=t.userCookiePostfix||"";c=e.userCookieName+y;var g=s.get(c);if(g){f[Wd]=!1;var E=g.split(e[nu]);E.length>0&&(f.id=E[0],f[Hd]=!!f.id)}if(!f.id){f.id=p();var w=_(f.id);v(w.join(e[nu]));var T=(t.namePrefix||"")+"ai_session";pV(o,T)}f[nl]=t[nl]||void 0;var b=s.get(e[Rv]);if(b){b=decodeURI(b);var C=b.split(e[nu]);C[0]&&(f[rl]=C[0]),C.length>1&&C[1]&&(f[nl]=C[1])}});i&&i.add(d);function p(){var y=t||{},g=y.getNewId||$_,E=g(y.idLength?t.idLength:22);return E}function _(y){var g=Ns(new Date);f.accountAcquisitionDate=g,f[Wd]=!0;var E=[y,g];return E}function v(y){var g=31536e3;f[Hd]=s.set(c,y,g)}f.setAuthenticatedUserContext=function(y,g,E){E===void 0&&(E=!1);var w=!LT(y)||g&&!LT(g);if(w){pe(o,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}f[rl]=y;var T=f[rl];g&&(f[nl]=g,T=[f[rl],f.accountId].join(e[nu])),E&&s.set(e[Rv],encodeURI(T))},f.clearAuthenticatedUserContext=function(){f[rl]=null,f[nl]=null,s.del(e[Rv])},f.update=function(y){if(f.id!==y||!f[Hd]){var g=y||p(),E=_(g);v(E.join(e[nu]))}}})}return e.cookieSeparator="|",e.userCookieName="ai_user",e.authUserCookieName="ai_authUser",e}(),jd="ext",qd="tags";function il(e,t){e&&e[t]&&gi(e[t]).length===0&&delete e[t]}function MT(){return null}var i2=function(){function e(t,n,i,o){var s=this,c=t.logger;St(e,this,function(f){if(f.appId=MT,f[Zd]=MT,f.application=new ZF,f.internal=new qF(n,o),pf()){f[zd]=new t2(n,t,o),f.device=new GF,f.location=new KF,f.user=new r2(n,t,o);var d=void 0,p=void 0,_;i&&(d=i.getTraceId(),p=i.getSpanId(),_=i.getName()),f[Iv]=new n2(d,p,_,c),f[Ud]=new RT}f[Zd]=function(){var v=f[Ud],y=null;if(v&&Re(v.id))y=v.id;else{var g=(f[zd]||{})[Ma];y=g&&Re(g.id)?g.id:null}return y},f[kT]=function(v,y){gt(bn(v.ext,$n.AppExt),"sesId",f[Zd](),Re)},f[DT]=function(v,y){gt(v.ext,$n.OSExt,f.os)},f[CT]=function(v,y){var g=f.application;if(g){var E=bn(v,qd);gt(E,wt.applicationVersion,g.ver,Re),gt(E,wt.applicationBuild,g.build,Re)}},f.applyDeviceContext=function(v,y){var g=f.device;if(g){var E=bn(bn(v,jd),$n.DeviceExt);gt(E,"localId",g.id,Re),gt(E,"ip",g.ip,Re),gt(E,"model",g.model,Re),gt(E,"deviceClass",g.deviceClass,Re)}},f[OT]=function(v,y){var g=f.internal;if(g){var E=bn(v,qd);gt(E,wt.internalAgentVersion,g.agentVersion,Re),gt(E,wt.internalSdkVersion,Ht(c,g.sdkVersion,64),Re),(v.baseType===yc.dataType||v.baseType===go.dataType)&&(gt(E,wt.internalSnippet,g.snippetVer,Re),gt(E,wt.internalSdkSrc,g.sdkSrc,Re))}},f[xT]=function(v,y){var g=s.location;g&&gt(bn(v,qd,[]),wt.locationIp,g.ip,Re)},f[PT]=function(v,y){var g=f[Iv];if(g){var E=bn(bn(v,jd),$n.TraceExt,{traceID:void 0,parentID:void 0});gt(E,"traceID",g.traceID,Re,ce),gt(E,"name",g.name,Re,ce),gt(E,"parentID",g.parentID,Re,ce)}},f.applyWebContext=function(v,y){var g=s.web;g&&gt(bn(v,jd),$n.WebExt,g)},f.applyUserContext=function(v,y){var g=f.user;if(g){var E=bn(v,qd,[]);gt(E,wt.userAccountId,g[nl],Re);var w=bn(bn(v,jd),$n.UserExt);gt(w,"id",g.id,Re),gt(w,"authId",g[rl],Re)}},f.cleanUp=function(v,y){var g=v.ext;g&&(il(g,$n.DeviceExt),il(g,$n.UserExt),il(g,$n.WebExt),il(g,$n.OSExt),il(g,$n.AppExt),il(g,$n.TraceExt))}})}return e.__ieDyn=1,e}(),xo,Lv,ol=null,o2=ql((xo={accountId:ol,sessionRenewalMs:30*60*1e3,samplingPercentage:100,sessionExpirationMs:24*60*60*1e3,cookieDomain:ol,sdkExtension:ol,isBrowserLinkTrackingEnabled:!1,appId:ol},xo[Zd]=ol,xo.namePrefix=Lv,xo[IT]=Lv,xo.userCookiePostfix=Lv,xo.idLength=22,xo.getNewId=ol,xo)),a2=function(e){Ei(t,e);function t(){var n=e.call(this)||this;n.priority=110,n.identifier=Nd;var i,o,s,c,f;return St(t,n,function(d,p){_(),tt(d,"context",{g:function(){return c}}),d.initialize=function(g,E,w,T){p.initialize(g,E,w,T),v(g)},d.processTelemetry=function(g,E){if(!ce(g)){E=d._getTelCtx(E),g.name===go.envelopeType&&E.diagLog().resetInternalMessageCount();var w=c||{};w[Ud]&&typeof c[Ud].id!="string"&&w[zd]&&w[zd].update();var T=w.user;if(T&&!T[Hd]&&T.update(w.user.id),y(g,E),T&&T[Wd]&&(T[Wd]=!1,!f)){var b=new yc(72,(Lr()||{}).userAgent||"");rB(E.diagLog(),1,b)}d.processNext(g,E)}},d._doTeardown=function(g,E){var w=(g||{}).core();if(w&&w[Ov]){var T=w[Ov](!1);T===o&&w.setTraceCtx(s)}_()};function _(){i=null,o=null,s=null,c=null,f=!0}function v(g){var E=d.identifier,w=d.core;d._addHook(At(g,function(){var T=yr(null,g,w);g.storagePrefix&&Bm(g.storagePrefix),f=g.disableUserInitMessage!==!1,i=T.getExtCfg(E,o2),d._extConfig=i})),s=w[Ov](!1),c=new i2(w,i,s,d._unloadHooks),o=Lm(d.context[Iv],s),w.setTraceCtx(o),d.context.appId=function(){var T=w.getPlugin(TE);return T?T.plugin._appId:null}}function y(g,E){bn(g,"tags",[]),bn(g,"ext",{});var w=d.context;w[kT](g,E),w[CT](g,E),w.applyDeviceContext(g,E),w[PT](g,E),w.applyUserContext(g,E),w[DT](g,E),w.applyWebContext(g,E),w[xT](g,E),w[OT](g,E),w.cleanUp(g,E)}}),n}return t.__ieDyn=1,t}(Os),AT="AuthenticatedUserContext",al="track",Mv="snippet",s2="getCookieMgr",l2="startTrackPage",c2="stopTrackPage",Av="flush",u2="startTrackEvent",f2="stopTrackEvent",d2="addTelemetryInitializer",BT="pollInternalLogs",Bv="getPlugin",Vv="evtNamespace",h2=al+"Event",p2=al+"Trace",_2=al+"Metric",m2=al+"PageView",v2=al+"Exception",g2=al+"DependencyData",y2="set"+AT,S2="clear"+AT,w2="https://js.monitor.azure.com/scripts/b/ai.config.1.cfg.json",Kd="connectionString",Fv="version",Aa="queue",ru="instrumentationKey",sl="userOverrideEndpointUrl",Yv="endpointUrl",iu="onunloadFlush",ir="context",VT="addHousekeepingBeforeUnload",$v="sendMessage",E2="updateSnippetDefinitions",Kr,ll,cl,Uv,ou,FT=[Mv,"dependencies","properties","_snippetVersion","appInsightsNew","getSKUDefaults"],YT="iKeyUsage",$T="CdnUsage",UT="SdkLoaderVer",T2="zipPayload",Xd=void 0,b2={samplingRate:100,maxSendNumber:1},N2={monthInterval:3,daysOfMonth:[28]},Jd={disabled:!0,limit:gr(b2),interval:gr(N2)},k2=(Kr={},Kr[Kd]=Xd,Kr.endpointUrl=Xd,Kr[ru]=Xd,Kr[sl]=Xd,Kr.diagnosticLogInterval=Xf(C2,1e4),Kr.featureOptIn=(ll={},ll[YT]={mode:3},ll[$T]={mode:2},ll[UT]={mode:2},ll[T2]={mode:1},ll),Kr.throttleMgrCfg=gr((cl={},cl[109]=gr(Jd),cl[106]=gr(Jd),cl[111]=gr(Jd),cl[110]=gr(Jd),cl)),Kr.extensionConfig=gr((Uv={},Uv.AppInsightsCfgSyncPlugin=gr({cfgUrl:w2,syncMode:2}),Uv)),Kr);function C2(e){return e&&e>0}function zT(e,t){return lc(function(n,i){Yn(t,function(o){var s=o&&o.value,c=null;!o.rejected&&s&&(e[Kd]=s,c=lE(s)),n(c)})})}var P2=function(){function e(t){var n=this,i,o,s,c,f,d,p,_,v,y,g,E,w,T;St(e,this,function(b){z(),tt(b,"config",{g:function(){return _}}),Se(["pluginVersionStringArr","pluginVersionString"],function(R){tt(b,R,{g:function(){return p?p[R]:null}})}),c=""+(t.sv||t[Fv]||""),t[Aa]=t[Aa]||[],t[Fv]=t[Fv]||2;var C=er(t.config||{},k2);_=C.cfg,v=new sF,tt(b,"appInsights",{g:function(){return v}}),o=new a2,i=new WF,s=new MF,p=new BB,tt(b,"core",{g:function(){return p}}),oe(At(C,function(){var R=_[Kd];if(Ji(R)){var F=lc(function(ae,he){Yn(zT(_,R),function(P){if(P.rejected)ae(null);else{var V=_[ru],K=P.value;V=K&&K.instrumentationkey||V,ae(V)}})}),Q=_[sl];ce(Q)&&(Q=lc(function(ae,he){Yn(zT(_,R),function(P){if(P.rejected)ae(null);else{var V=_[Yv],K=P.value,W=K&&K.ingestionendpoint;V=W?W+Rs:V,ae(V)}})})),_[ru]=F,_[Yv]=Q}if(Re(R)&&R){var A=lE(R),B=A.ingestionendpoint;_.endpointUrl=_[sl]?_[sl]:B+Rs,_[ru]=A.instrumentationkey||_[ru]}_.endpointUrl=_[sl]?_[sl]:_[Yv]})),b[Mv]=t,b[Av]=function(R,F){R===void 0&&(R=!0);var Q;return ad(p,function(){return"AISKU.flush"},function(){R&&!F&&(Q=oo(function(ae){F=ae}));var A=1,B=function(){A--,A===0&&F()};Se(p.getChannels(),function(ae){ae&&(A++,ae[Av](R,B))}),B()},null,R),Q},b[iu]=function(R){R===void 0&&(R=!0),Se(p.getChannels(),function(F){F[iu]?F[iu]():F[Av](R)})},b.loadAppInsights=function(R,F,Q){R===void 0&&(R=!1),R&&cM("Legacy Mode is no longer supported");function A(B){if(B){var ae="";ce(c)||(ae+=c),b[ir]&&b[ir].internal&&(b[ir].internal.snippetVer=ae||"-"),Xe(b,function(he,P){Re(he)&&!Le(P)&&he&&he[0]!=="_"&&dn(FT,he)===-1&&B[he]!==P&&(B[he]=P)})}}return ad(b.core,function(){return"AISKU.loadAppInsights"},function(){p.initialize(_,[s,o,i,v,y],F,Q),tt(b,"context",{g:function(){return o[ir]}}),g||(g=new mV(p));var B=D2();B&&b[ir]&&(b[ir].internal.sdkSrc=B),A(b[Mv]),b.emptyQueue(),b[BT](),b[VT](b),oe(At(C,function(){var ae=!1;_.throttleMgrCfg[109]&&(ae=!_.throttleMgrCfg[109].disabled),!g.isReady()&&_.extensionConfig&&_.extensionConfig[y.identifier]&&ae&&g.onReadyState(!0),!E&&!_[Kd]&&zf(YT,_,!0)&&(g[$v](106,"See Instrumentation key support at aka.ms/IkeyMigrate"),E=!0),!w&&b[ir].internal.sdkSrc&&b[ir].internal.sdkSrc.indexOf("az416426")!=-1&&zf($T,_,!0)&&(g[$v](110,"See Cdn support notice at aka.ms/JsActiveCdn"),w=!0),!T&&parseInt(c)<6&&zf(UT,_,!0)&&(g[$v](111,"An updated Sdk Loader is available, see aka.ms/SnippetVer"),T=!0)}))}),b},b[E2]=function(R){oA(R,b,function(F){return F&&dn(FT,F)===-1})},b.emptyQueue=function(){try{if($e(b.snippet[Aa])){for(var R=b.snippet[Aa].length,F=0;F<R;F++){var Q=b.snippet[Aa][F];Q()}b.snippet[Aa]=void 0,delete b.snippet[Aa]}}catch(B){var A={};B&&Le(B.toString)&&(A.exception=B.toString())}},b[VT]=function(R){if(pf()||U0()){var F=function(){if(R[iu](!1),Le(b.core[Bv])){var A=n.core[Bv](Nd);if(A){var B=A.plugin;B&&B[ir]&&B[ir]._sessionManager&&B[ir]._sessionManager.backup()}}},Q=!1;d||(d=ho(f,p[Vv]&&p[Vv]())),oe(At(_,function(A){var B=A.cfg,ae=R.appInsights,he=yr(null,B,ae.core),P=he.getExtCfg(ae.identifier||bE);G();var V=B.disablePageUnloadEvents;P.disableFlushOnBeforeUnload||(qB(F,V,d)&&(Q=!0),ym(F,V,d)&&(Q=!0),!Q&&!bA()&&pe(p.logger,1,19,"Could not add handler for beforeunload and pagehide")),!Q&&!P.disableFlushOnUnload&&ym(F,V,d)}))}},b.getSender=function(){return s},b.unload=function(R,F,Q){var A=!1,B;R&&!F&&(B=oo(function(he){F=he}));function ae(he){A||(A=!0,z(),F&&F(he))}return b[iu](R),G(),p.unload&&p.unload(R,ae,Q),B},uc(b,v,[s2,h2,m2,"trackPageViewPerformance",v2,"_onerror",p2,_2,l2,c2,u2,f2]),uc(b,M,[g2,"addDependencyListener","addDependencyInitializer"]),uc(b,p,[d2,BT,"stopPollingInternalLogs",Bv,"addPlugin",Vv,"addUnloadCb","getTraceCtx","updateCfg","onCfgChange"]),uc(b,function(){var R=o[ir];return R?R.user:null},[y2,S2]);function M(){return i}function z(){f=Qn("AISKU"),d=null,i=null,o=null,s=null,c=null,g=null,E=!1,w=!1,T=!1,y=new _F}function G(){d&&(KB(null,d),XB(null,d))}function oe(R){p.addUnloadHook(R)}})}return e.prototype.addDependencyInitializer=function(t){return null},e}();function D2(){if(ou)return ou;var e=null,t=!1,n=["://js.monitor.azure.com/","://az416426.vo.msecnd.net/"];try{var i=(document||{}).currentScript;i&&(e=i.src)}catch{}if(e){try{var o=e.toLowerCase();if(o){var s="";Se(n,function(c,f){if(wn(o,c)!==-1)return s="cdn"+(f+1),wn(o,"/scripts/")===-1&&(wn(o,"/next/")!==-1?s+="-next":wn(o,"/beta/")!==-1&&(s+="-beta")),ou=s+(t?".mod":""),-1})}}catch{}ou=e}return ou}function HT(e){const t=new P2({config:{instrumentationKey:e,enableAutoRouteTracking:!1}});return t.loadAppInsights(),t}const x2={install:function(e,t){const n=HT(t.instrumentationKey),i=new SL(t.loggingLevel,n);Hl.register(i)}};var Xr=(e=>(e[e.ApplicationStart=0]="ApplicationStart",e[e.PageView=1]="PageView",e[e.Search=2]="Search",e[e.Sort=3]="Sort",e))(Xr||{});function O2(e){return e?`Field:'${e.SortField??"unspecified"}' Direction:'${e.SortDirection??"unspecified"}'`:"Sort: unspecified"}function I2(e){return!e||e.length===0?["No filters applied"]:e.sort(t=>t.displayPosition).map(t=>t.summariseStateAsText())}class R2{constructor(t){this.eventsToLog=t}trackPageView(t){this.eventShouldBeRecorded(Xr.PageView)&&this.recordEvent("Page view",t)}trackSearch(t){if(this.eventShouldBeRecorded(Xr.Search)){const n=I2(t);this.recordEvent("Search",n)}}trackSort(t){if(this.eventShouldBeRecorded(Xr.Sort)){const n=O2(t);this.recordEvent("Sort",n)}}trackApplicationStart(){this.eventShouldBeRecorded(Xr.ApplicationStart)&&this.recordEvent("Application start")}recordEvent(t,n){console.log(`${t}:`,n??"")}eventShouldBeRecorded(t){return this.eventsToLog.includes(t)}}const L2={install:function(e,t){const n=new R2(t.eventsToLog);e.config.globalProperties.$router.afterEach(o=>{var s;n.trackPageView({name:(s=o.name)==null?void 0:s.toString(),uri:o.fullPath})}),Qa.register(n)}};class M2{constructor(t,n){this.eventsToLog=t,this.appInsights=n}trackPageView(t){if(this.eventShouldBeRecorded(Xr.PageView)){const n=document.referrer||void 0;this.appInsights.trackPageView({name:t.name,uri:t.uri,properties:{referrer:n}})}}trackSearch(t){if(this.eventShouldBeRecorded(Xr.Search)){const n=t.map(o=>o.summariseStateAsObject()),i=t.map(o=>o.summariseStateAsText());this.appInsights.trackEvent({name:"Search",properties:{stateObject:n,stateText:i}})}}trackSort(t){this.eventShouldBeRecorded(Xr.Sort)&&this.appInsights.trackEvent({name:"Sort",properties:{sortState:t}})}trackApplicationStart(){this.eventShouldBeRecorded(Xr.ApplicationStart)&&this.appInsights.trackEvent({name:"Application start"})}eventShouldBeRecorded(t){return this.eventsToLog.includes(t)}}const A2={install:function(e,t){const n=HT(t.instrumentationKey),i=new M2(t.eventsToLog,n),o=s=>{var f;const c=(f=s.name)==null?void 0:f.valueOf();i.trackPageView({name:c,uri:s.path})};zl.add({priority:w0.Low,action:o}),Qa.register(i)}};pt.CapeApplicationInsightsAnalyticsPlugin=A2,pt.CapeApplicationInsightsLoggingPlugin=x2,pt.CapeConsoleAnalyticsPlugin=L2,pt.CapeConsoleLoggingPlugin=yL,pt.CapeEvent=Xr,pt.CapeLogger=Hl,pt.CapePlugin=b0,pt.Filter=Fh,pt.LoggingLevel=Dn,pt.createCapeApp=vL,pt.useDatasetStore=Zi,pt.useFieldStore=es,pt.useFilterStore=Yt,pt.usePropertyStore=nn,pt.useRecordStore=oi,pt.useSearchResultsStore=mn,Object.defineProperty(pt,Symbol.toStringTag,{value:"Module"})});